diff options
author | Alex Shatov <alexs@att.com> | 2017-09-22 17:34:48 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2017-09-22 17:34:48 -0400 |
commit | 9144f04afe7c56e762b6e4d0c28fd5726a3746ba (patch) | |
tree | 5c0fd072ec9c0fd2e3db663adf304f1a7c4842aa /tox.ini | |
parent | a5bfd6aed8b182416ef1cf0ce88dbc0b61d92fa0 (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.ini | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |