notests --cover-html 不生成 html 文档
我已经安装了 python 2.6 的鼻子,它工作正常,但我尝试使用 --cover-html
选项生成 html 报告。我从命令行输入了以下命令:
nosetests --cover-html
它运行了测试,但没有生成 html。
我错过了什么吗?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是旧消息,但选项的顺序很重要:
It's old news but the order of the options is important:
您还需要
--with-coverage
选项来首先启用覆盖率插件。You also need the
--with-coverage
option to enable the coverage plugin in the first place.