testing with coverage.py problem
Ryan Ginstrom
software at ginstrom.com
Mon Jul 16 23:43:46 EDT 2007
> On Behalf Of Piotr Hrebieniuk
> I've spent few hours and found nothing, so here's my question:
> How can i run tests wrote by myself on a module, using coverage.py ?
> Let's assume i have a module mymod.py which i want to test
> with tests from file mytest.py (i.e. class inherited from
> unittest.TestCase). How to do that with coverage.py? Where i
> should put the code that runs the tests?
The easiest way is probably by using nose
http://somethingaboutorange.com/mrl/projects/nose/
In particular, check out the "--with-coverage" flag.
Regards,
Ryan Ginstrom
More information about the Python-list
mailing list