using explicit coverage2/3 in Makefile

This commit is contained in:
Yuming Zhu 2018-11-26 15:45:57 +08:00 committed by Mike McLean
parent 30c2e5f426
commit fa5ccf0eac
5 changed files with 21 additions and 28 deletions

View file

@ -69,21 +69,21 @@ git-clean:
@git clean -d -q -x
test:
coverage erase
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/.:www/lib coverage run \
coverage2 erase
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/.:www/lib coverage2 run \
--source . /usr/bin/nosetests
coverage report
coverage html
coverage2 report
coverage2 html
@echo Full coverage report in htmlcov/index.html
test3:
coverage erase
coverage3 erase
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/. coverage3 run \
--rcfile .coveragerc3 --source . \
/usr/bin/nosetests-3 \
/usr/bin/nosetests \
tests/test_lib tests/test_cli
coverage report --rcfile .coveragerc3
coverage html --rcfile .coveragerc3
coverage3 report --rcfile .coveragerc3
coverage3 html --rcfile .coveragerc3
@echo Full coverage report at file://${PWD}/htmlcov/index.html
test-tarball: