summaryrefslogtreecommitdiffstats
path: root/onap-dcae-dcaepolicy-lib/tox.ini
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2017-09-26 17:03:11 -0400
committerAlex Shatov <alexs@att.com>2017-09-26 17:03:11 -0400
commit8cdeeeb9a2e8b51f9897173dc26d672e55b00304 (patch)
tree087b09e5a71dbd85030f2dd53cc7727749ce5166 /onap-dcae-dcaepolicy-lib/tox.ini
parent7b31008280fa8b5d45af59f6fd86d49293f14abc (diff)
72% unit test and coverage with tox
* usage on local run: tox -c tox-local.ini * usage on ONAP run: tox Change-Id: I8075b035f9f05fa45a3e7eba52dc40fbcef8feec Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'onap-dcae-dcaepolicy-lib/tox.ini')
-rw-r--r--onap-dcae-dcaepolicy-lib/tox.ini7
1 files changed, 5 insertions, 2 deletions
diff --git a/onap-dcae-dcaepolicy-lib/tox.ini b/onap-dcae-dcaepolicy-lib/tox.ini
index 987b009..78af290 100644
--- a/onap-dcae-dcaepolicy-lib/tox.ini
+++ b/onap-dcae-dcaepolicy-lib/tox.ini
@@ -1,11 +1,14 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
-envlist = py27,py35
+envlist = py27
[testenv]
deps=
-rrequirements.txt
+ cloudify-plugins-common==3.4
pytest
coverage
pytest-cov
-commands=pytest --junitxml xunit-results.xml --cov {envsitepackagesdir} --cov-report=xml
+setenv =
+ PYTHONPATH={toxinidir}
+commands=pytest --junitxml xunit-reports/xunit-result-onap_dcae_dcaepolicy_lib.xml --cov onap_dcae_dcaepolicy_lib --cov-report=xml