R10 tag/path update
[dcaegen2/platform/plugins.git] / relationships / tox.ini
index 5d8f4ae..a9e10a0 100644 (file)
@@ -1,11 +1,32 @@
-# content of: tox.ini , put in same dir as setup.py
 [tox]
-envlist = py27
+envlist = py27,py36,py37,py38,cov
+skip_missing_interpreters = true
 
 [testenv]
+# coverage can only find modules if pythonpath is set
+setenv=
+    PYTHONPATH={toxinidir}
+    COVERAGE_FILE=.coverage.{envname}
 deps=
-    cloudify-plugins-common==3.4
+    -rrequirements.txt
     pytest
     coverage
     pytest-cov
-commands=pytest --junitxml xunit-results.xml --cov {envsitepackagesdir}/relationshipplugin --cov-report=xml
+commands=
+    coverage erase
+    pytest --junitxml xunit-results.{envname}.xml --cov relationshipplugin
+
+[testenv:cov]
+skip_install = true
+deps=
+    coverage
+setenv=
+    COVERAGE_FILE=.coverage
+commands=
+    coverage combine
+    coverage xml
+    coverage report
+    coverage html
+
+[pytest]
+junit_family = xunit2