Issues

Issue #651 resolved

classes in coverage report are unsorted

Mario Frasca
created an issue

the report file python.txt does not follow the same order as automodule / :members:

this is true for the classes (these are keys of a dictionary and dictionaries are per default unsorted). functions and methods within classes are ok.

you could solve this by changing the loop around line 231 of coverage.py.

{{{

!python

 op.write('\n')

if undoc['classes']: op.write('Classes:\n') - for name, methods in undoc['classes'].iteritems(): + for name, methods in sorted(undoc['classes'].items()): if not methods: op.write(' * %s\n' % name) else: }}}

Comments (4)

  1. Log in to comment