db3l at fitlinxx.com
Wed Jul 6 00:16:08 CEST 2005
roy at panix.com (Roy Smith) writes:
> We've got code coveage tools. This is a testing tool. You keep
> running tests and it keeps track of which lines of code are executed
> (i.e. which logic branches are taken). One theory of testing says you
> should keep writing test cases until you've exercised every branch. I
> don't see any reason such a tool wouldn't be useful in a big Python
> project, but I'm not aware of any.
The coverage.py module (http://www.garethrees.org/2001/12/04/python-coverage)
has worked pretty well for us. Just run your unit test suite under its
There's also http://www.softwareverify.com/pythonCoverageValidator
which is commercial.
More information about the Python-list