tests: plug coverage into run-tests

It makes easier to check what functions lack unit tests.
This commit is contained in:
Marek Marczykowski-Górecki 2017-03-16 20:35:56 +01:00
parent f93674de1a
commit b225cefdf8
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
3 changed files with 5 additions and 1 deletions

3
ci/coveragerc Normal file
View File

@ -0,0 +1,3 @@
[run]
source = qubes
omit = qubes/tests/*

View File

@ -1,5 +1,6 @@
# WARNING: those requirements are used only for travis-ci.org
# they SHOULD NOT be used under normal conditions; use system package manager
coverage
docutils
jinja2
lxml

View File

@ -7,4 +7,4 @@ PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}"
export PYTHONPATH
"${PYTHON}" setup.py egg_info --egg-base "${TESTPYTHONPATH}"
"${PYTHON}" -m qubes.tests.run "$@"
"${PYTHON}" -m coverage run --rcfile=ci/coveragerc -m qubes.tests.run "$@"