鼻子测试和综合覆盖范围
我有许多以编程方式运行的项目:
nosetest --with-coverage --cover-html-dir=happy-sauce/
问题是,对于每个项目,覆盖模块都会覆盖索引.html 文件,而不是附加到它。有没有办法生成一个组合的 super-index.html 文件,其中包含我所有项目的结果?
谢谢。
I have many projects that I'm programatically running:
nosetest --with-coverage --cover-html-dir=happy-sauce/
The problem is that for each project, the coverage module overwrites the index.html file, instead of appending to it. Is there a way to generate a combined super-index.html file, that contains the results for all my projects?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您无法合并 HTML 目录。您可以组合 .coverage 数据文件,但您必须直接使用覆盖范围,而不是通过鼻子:
You can't combine the HTML directories. You can combine the .coverage data files, but you'll have to use coverage directly, rather than through nose:
nosetests --with-coverage -i project1/*.py -i project2/*.py
nosetests --with-coverage -i project1/*.py -i project2/*.py