unit testing - Can python coverage display results hierarchically? -


i use python code coverage tool monitor , measure our testing coverage. i'm publishing results internally, using coverage's excellent html report generation. i'd change reports generated flat report of modules nested/hierarchical approach, such each module display totals modules within. thus, if current summary page looks like:

name                         stmts   miss  cover myapp                           33     33     0% myapp.infra                      2      0   100% myapp.infra.mm                  34      8    76% myapp.infra.mmcheck            140     32    77% myapp.job                        2      2     0% myapp.job.jobcontrol           629    445    29% myapp.job.launcher             334    163    51% 

i instead summary report like:

name                         stmts   miss  cover myapp.__init__                  33     33     0% myapp.infra                    176     40    77% myapp.job                      965    610    37% 

where myapp.infra links index package:

name                         stmts   miss  cover myapp.infra.__init__             2      0   100% myapp.infra.mm                  34      8    76% myapp.infra.mmcheck            140     32    77% 

does capability exist, , foolish see it? or need customize report generation?

one option use z3c.coverage. quote docs:

why use z3c.coverage instead of coverage html?

some people prefer of reports produced z3c.coverage. people find per-package coverage summaries or tree-like navigation convenient.

sounds need. hope helps.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -