code coverage tool

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Sun Mar 2 19:23:30 EST 2003


> From: Dave Brueck [mailto:dave at pythonapocrypha.com]
> 
> On Fri, 28 Feb 2003, Delaney, Timothy C (Timothy) wrote:
> 
> > > >phil hunt wrote:
> > > >>
> > > >> Is there an open-source code coverage tool for Python? I have a
> > > >> program for which I have written sevewral unit tests, 
> and I want to
> > > >> see if any of the lines in my program aren't being 
> exercised by the
> > > >> tests.
> >
> > I'm still waiting for permission to release my coverage tool :(
> >
> > It's still incomplete, but it's faster than the other 
> options I've tried
> > and collects more information.
> 
> Does it work with multithreaded programs? Hope you get 
> permission soon! :)

Nah - unfortunately, that's one of the major parts that's incomplete about it :( A python coverage tool which automatically attaches to multiple threads is a non-trivial task.

Of course, if I *do* get to release it (I'm waiting on a VP to sign something off ...) then I could leave it to *someone else* to add the multi-threading part ;)

Tim Delaney





More information about the Python-list mailing list