我已经为 python 2.6 安装了 nose,它工作正常,但我正在尝试使用 --cover-html
选项生成 html 报告。我从命令行输入了以下命令:
nosetests --cover-html
它运行了测试但没有生成 html。
我错过了什么吗?
最佳答案
这是旧闻,但选项的顺序很重要:
nosetests --with-coverage --cover-erase --cover-html-dir=C:/temp/res --cover-html test.py
关于python - nosetests --cover-html 不生成 html 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3212668/