From b225cefdf84b98e070269967cd82721a47c6620e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 16 Mar 2017 20:35:56 +0100 Subject: [PATCH] tests: plug coverage into run-tests It makes easier to check what functions lack unit tests. --- ci/coveragerc | 3 +++ ci/requirements.txt | 1 + run-tests | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ci/coveragerc diff --git a/ci/coveragerc b/ci/coveragerc new file mode 100644 index 00000000..2d47c77e --- /dev/null +++ b/ci/coveragerc @@ -0,0 +1,3 @@ +[run] +source = qubes +omit = qubes/tests/* diff --git a/ci/requirements.txt b/ci/requirements.txt index a702822e..81325bdf 100644 --- a/ci/requirements.txt +++ b/ci/requirements.txt @@ -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 diff --git a/run-tests b/run-tests index 85ed63ee..17471333 100755 --- a/run-tests +++ b/run-tests @@ -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 "$@"