testing with coverage.py problem

Ryan Ginstrom software at ginstrom.com
Tue Jul 17 05:43:46 CEST 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

In particular, check out the "--with-coverage" flag.

Ryan Ginstrom

More information about the Python-list mailing list