Nosetests --cover-html does not generate html documents

I installed the nose for python 2.6 and it works fine, but I tried to use the --cover-html option to create an html report. I entered the following command at the command prompt:

 nosetests --cover-html 

He ran tests, but did not generate html.

Did I miss something?

+6
python code-coverage nosetests
source share
2 answers

This is old news, but the order of options is important:

 nosetests --with-coverage --cover-erase --cover-html-dir=C:/temp/res --cover-html test.py 
+3
source share

You will also need the --with-coverage option to enable the coverage plugin first.

+2
source share

All Articles