[TIP] Rolling up test results

medford bridges medford.bridges at gmail.com
Mon Apr 29 09:23:55 PDT 2013


Apologies in advance if this is a too opt-asked, frequently answered
question so I'll keep it really simple.

Given this output from a couple of tests in a couple of files, run by
nosetests:

...
Ran 8 tests in 0.077s

FAILED (failures=4)


Is there a option or other tool set to produce something more like this,
either instead or in addition to basic output?

...
SimpleTest1   2/2/0/4 (pass/fail/error/total tests)
SimpleTest2   2/2/0/4 (pass/fail/error/total tests)
Summary       4/4/0/8 (pass/fail/error/total tests)


In particular, I'd like to be able to track total tests run, pass/fail
percentages, and more without diving into output parsing.

It would be useful to get a count of tests in a test case file or test
suite collection, even if some were skipped for various reasons.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130429/c24b6749/attachment.html>


More information about the testing-in-python mailing list