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-local.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-local.ini')
-rw-r--r-- | tox-local.ini | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tox-local.ini b/tox-local.ini new file mode 100644 index 0000000..6700caa --- /dev/null +++ b/tox-local.ini @@ -0,0 +1,15 @@ +[tox] +envlist = py27 + +[testenv] +deps= + -rrequirements.txt + pytest + coverage + pytest-cov +setenv = + PYTHONPATH={toxinidir} +recreate = True +commands=pytest -v --cov policyhandler --cov-report html + + |