[Baypiggies] How to determine what unit tests cover a code change?

Dirk Bergstrom dirk at otisbean.com
Wed Feb 2 22:41:40 CET 2011


On 02/02/2011 11:18 AM, Lincoln Peters wrote:
> I know which source files changed since I last ran
> the unit tests, does anyone know of a good way to determine which unit
> tests cover those source files and only run those?

What you're looking for is very similar to what code coverage tools give 
you, except sort of backwards.  Have a look at coverage.py and figleaf, 
perhaps one of them does what you want, or can be tricked into doing it:

http://nedbatchelder.com/code/coverage/
http://darcs.idyll.org/~t/projects/figleaf/doc/

-- 
Dirk Bergstrom
dirk at otisbean.com
http://otisbean.com/


More information about the Baypiggies mailing list