summaryrefslogtreecommitdiffstats
path: root/docker/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'docker/tox.ini')
-rw-r--r--docker/tox.ini22
1 files changed, 19 insertions, 3 deletions
diff --git a/docker/tox.ini b/docker/tox.ini
index c38918a..96c0e1f 100644
--- a/docker/tox.ini
+++ b/docker/tox.ini
@@ -1,13 +1,29 @@
-# content of: tox.ini , put in same dir as setup.py
[tox]
-envlist = py27,py36
+envlist = py27,py36,cov
[testenv]
+# coverage can only find modules if pythonpath is set
+setenv=
+ PYTHONPATH={toxinidir}
+ COVERAGE_FILE=.coverage.{envname}
deps=
-rrequirements.txt
pytest
coverage
pytest-cov
commands=
- pytest --junitxml xunit-results.xml --cov dockerplugin --cov-report xml
+ coverage erase
+ pytest --junitxml xunit-results.{envname}.xml --cov dockerplugin
+
+[testenv:cov]
+skip_install = true
+deps=
+ coverage
+setenv=
+ COVERAGE_FILE=.coverage
+commands=
+ coverage combine
coverage xml
+
+[pytest]
+junit_family = xunit2