Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nosetests --cover-html does not generate html docs

I have installed nose for python 2.6 and it works fine but I was trying use the --cover-html option to generate a html report. I typed the following command from the command line:

nosetests --cover-html

It ran the tests but did not generate the html.

Am I missing something ?

like image 379
Gokul Avatar asked Jul 09 '10 12:07

Gokul


2 Answers

It's old news but the order of the options is important:

nosetests --with-coverage --cover-erase --cover-html-dir=C:/temp/res --cover-html test.py
like image 134
max Avatar answered Oct 26 '22 05:10

max


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

like image 31
Ned Batchelder Avatar answered Oct 26 '22 07:10

Ned Batchelder