summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2017-09-22 17:34:48 -0400
committerAlex Shatov <alexs@att.com>2017-09-22 17:34:48 -0400
commit9144f04afe7c56e762b6e4d0c28fd5726a3746ba (patch)
tree5c0fd072ec9c0fd2e3db663adf304f1a7c4842aa /tox.ini
parenta5bfd6aed8b182416ef1cf0ce88dbc0b61d92fa0 (diff)
unit test and coverage with tox
usage on local run: tox -c tox-local.ini usage on ONAP run: tox Change-Id: Ic455f0f44f5b3bee92b60ea282851e72c3a12b7e Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 14 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..dd7854c
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,14 @@
+# content of: tox.ini , put in same dir as setup.py
+[tox]
+envlist = py27
+
+[testenv]
+deps=
+ -rrequirements.txt
+ pytest
+ coverage
+ pytest-cov
+setenv =
+ PYTHONPATH={toxinidir}
+recreate = True
+commands=pytest --junitxml xunit-reports/xunit-result-policyhandler.xml --cov policyhandler --cov-report=xml