Code coverage to Python code

James Mills prologic at shortcircuit.net.au
Mon Jan 5 04:29:06 CET 2009


On Sun, Jan 4, 2009 at 9:35 PM, Hussein B <hubaghdadi at gmail.com> wrote:
> What is the best code coverage tool available for Python?

I like ot use nose with it's coverage plugin.

easy_install nose
easy_install co

And I use the following in my top-level Makefile

tests:
   @nosetests \
      --with-coverage \
      --cover-package=circuits \
      --cover-erase \
      --cover-inclusive \
      --with-doctest


cheers
James



More information about the Python-list mailing list