7

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 ?

Chris Seymour
  • 83,387
  • 30
  • 160
  • 202
Gokul
  • 136
  • 6

2 Answers2

4

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
max
  • 9,708
  • 15
  • 89
  • 144
  • What is the difference between the above command and `nosetests test.py --with-html-out` ?! – Karthik Apr 26 '16 at 05:19
  • I do not see any with-html-out option is nosetests. I think you are referring to another python package called nose-htmloutput. I don't know about that. – max Apr 26 '16 at 18:48
2

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

Chris Seymour
  • 83,387
  • 30
  • 160
  • 202
Ned Batchelder
  • 364,293
  • 75
  • 561
  • 662