Search code examples
pythonunit-testingtestingcode-coveragepython-unittest

Generate test coverage information from pyunit unittests?


I have some pyunit unit tests for a simple command line programme I'm writing. Is it possible for me to generate test coverage numbers? I want to see what lines aren't being covered by my tests.


Solution

  • I regularly use Ned Batchelder's coverage.py tool for exactly this purpose.