I know Eclipse + PyDev has an option Run As
=> 3 Python Coverage
. But all it reports is:
Ran 6 tests in 0.001s
OK
Actually this is a really nice feature, didn't know about it before :)
See if this helps http://www.machine-envy.com/blog/2006/07/29/automated-python-testing-with-nose-and-eclipse/
It uses nosetests with the –with-coverage
option.
Note that in pydev 2.0, the coverage support changed, now, you should first open the coverage view and select the 'enable code coverage for new launches'... after that, any launch you do (regular or unit-test) will have coverage information being gathered (and the results inspection also became a bit more intuitive).