I use nosetests to automatically detect and run my unittests. I would also like it to generate coverage reports.
When I run nosetests with the following command, everything works just fine
nosetests .
I searched online to generate coverage, nosetests has a --with-coverage command line argument. I also double checked that this command exists with nosetests --help . However, whenever I run the following command, I get the following output
nosetests --with-coverage . Usage: nosetests [options] nosetests: error: no such option: --with-coverage
I double checked that the plugin plugin is installed by running
nosetests --plugins
appears on the list along with a bunch of other plugins.
I also know that I have coverage set because I can manually start collecting coverage data using something in the following lines:
coverage run test.py
Am I using the --with-coverage option incorrectly? Or is there something else I'm missing?
Thanks in advance.
source share