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.
asked Sep 8, 2011 at 17:45
sholsapp
16.2k10 gold badges53 silver badges70 bronze badges
2 Answers 2
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:
$ 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
answered Sep 8, 2011 at 18:43
Ned Batchelder
378k77 gold badges583 silver badges675 bronze badges
Sign up to request clarification or add additional context in comments.
nosetests --with-coverage -i project1/*.py -i project2/*.py
Comments
lang-py