我有我编程运行许多项目:Nosetests和组合覆盖
nosetest --with-coverage --cover-html-dir=happy-sauce/
的问题是,对于每个项目,覆盖模块覆盖,而不是附加给它的index.html文件, 。有没有办法生成一个组合的super-index.html文件,其中包含我所有项目的结果?
谢谢。
我有我编程运行许多项目:Nosetests和组合覆盖
nosetest --with-coverage --cover-html-dir=happy-sauce/
的问题是,对于每个项目,覆盖模块覆盖,而不是附加给它的index.html文件, 。有没有办法生成一个组合的super-index.html文件,其中包含我所有项目的结果?
谢谢。
您不能合并HTML目录。你可以结合.coverage数据文件,但你必须直接使用覆盖面,而不是通过鼻子:
$ nosetest --with-coverage proj1
$ mv .coverage .coverage.1
$ nosetest --with-coverage proj2
$ mv .coverage .coverage.2
$ coverage combine
(combines .coverage.1 and .coverage.2 into a new .coverage)
$ coverage html --directory=happy-sauce
nosetests --with-coverage -i project1/*.py -i project2/*.py
我似乎无法让我的'nosetest --with覆盖'生成.coverage文件,是否有这个标志? (nosetests version 1.0.1) – sholsapp
它总是在执行鼻子的文件夹中生成。 – dbn