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
.
$ coverage run unit2 discover Coverage.py warning: No data was collected. No file to run: 'unit2'
I'm running Python 2.7 on OS X 10.6.8. – Messiaen