(no subject)
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

(no subject)

From: David Bolen <db3l@fitlinxx.com>
Date: Wed Jul 06 2005 - 00:16:08 CEST

roy@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
control.

There's also http://www.softwareverify.com/pythonCoverageValidator
which is commercial.

-- David
Received on Thu Sep 29 16:46:41 2005