aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorDimitrios Markou <mardim@intracom-telecom.com>2018-05-09 14:49:27 +0300
committerDimitrios Markou <mardim@intracom-telecom.com>2018-06-21 09:08:04 +0300
commitee231b97dbb139ae31d9967b8f3a8ac9611256b0 (patch)
treefeb45ee84a705c7da494cf74443412c2ee37a794 /tox.ini
parentf09fb2d100e06d72568dd039f1cf83dc2c6f5847 (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.ini17
1 files changed, 16 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index e038b61d..4ec7b2f7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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