diff options
author | Dimitrios Markou <mardim@intracom-telecom.com> | 2018-05-09 14:49:27 +0300 |
---|---|---|
committer | Dimitrios Markou <mardim@intracom-telecom.com> | 2018-06-21 09:08:04 +0300 |
commit | ee231b97dbb139ae31d9967b8f3a8ac9611256b0 (patch) | |
tree | feb45ee84a705c7da494cf74443412c2ee37a794 /tox.ini | |
parent | f09fb2d100e06d72568dd039f1cf83dc2c6f5847 (diff) |
Create unit tests for 'cleanup.py' module
This is the first attempt to add unit testing capabilities
to OPNFV/SFC project.
Also we are following the contraints.txt logic which
helps in the direction of simulating a test env which
will be as much as close to the real env that the SFC
testcases are running.
Jira: SFC-127
Jira: SFC-129
Change-Id: I938d28f9f85614cdefa163949c4ec9f06f5d27b4
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = docs,docs-linkcheck +envlist = docs,docs-linkcheck,py27 skipsdist = True [testenv] @@ -7,6 +7,12 @@ usedevelop = False setenv= HOME = {envtmpdir} PYTHONPATH = {toxinidir} +deps = + -chttps://raw.githubusercontent.com/openstack/requirements/stable/queens/upper-constraints.txt + -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=master + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt +install_command = pip install {opts} {packages} [testenv:docs] deps = -r{toxinidir}/docs/requirements.txt @@ -18,3 +24,12 @@ whitelist_externals = echo [testenv:docs-linkcheck] deps = -r{toxinidir}/docs/requirements.txt commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/linkcheck + +[testenv:py27] +commands = nosetests --with-xunit \ + --with-coverage \ + --cover-tests \ + --cover-package=sfc \ + --cover-xml \ + --cover-html \ + sfc/unit_tests/unit |