Generate test coverage information from pyunit unittests?

code-coverage, python, python-unittest, testing, unit-testing

Solution

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

Problem

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.

Original source