summaryrefslogtreecommitdiffstats
path: root/cdap/cdapplugin/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'cdap/cdapplugin/tox.ini')
-rw-r--r--cdap/cdapplugin/tox.ini21
1 files changed, 19 insertions, 2 deletions
diff --git a/cdap/cdapplugin/tox.ini b/cdap/cdapplugin/tox.ini
index 32445ed..5c399a7 100644
--- a/cdap/cdapplugin/tox.ini
+++ b/cdap/cdapplugin/tox.ini
@@ -1,12 +1,29 @@
[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 cdapcloudify --cov-report xml
+ coverage erase
+ pytest --junitxml xunit-results.{envname}.xml --cov cdapcloudify
+
+[testenv:cov]
+skip_install = true
+deps=
+ coverage
+setenv=
+ COVERAGE_FILE=.coverage
+commands=
+ coverage combine
coverage xml
+
+[pytest]
+junit_family = xunit2