How can you get unittest2
and coverage.py
working together?
In theory something like
coverage run unit2 discover
should work, but it currently just errors out.
If you are a nose
user that will be the equivalent of nosetests --with-coverage
.
This must be specific to your installation since it works fine for me
to generate the coverage information then
to generate the an HTML report (one of several reporting formats), and
to see the results.
(Answering this because this is a top ghit for "unittest2 coverage" and I don't want people put off by the lack of any answer.)