aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini27
1 files changed, 10 insertions, 17 deletions
diff --git a/tox.ini b/tox.ini
index 4aa32d525..ef9a50b0e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,13 +10,12 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}
-commands = nosetests --with-xunit \
- --with-coverage \
- --cover-tests \
- --cover-package=functest \
- --cover-xml \
- --cover-html \
- functest/tests/unit
+commands =
+ pytest \
+ --junit-xml=junit.xml \
+ --html=report.html --self-contained-html \
+ --cov=xtesting --cov-reset --cov-report html \
+ functest/tests/unit
[testenv:docs]
basepython = python3.10
@@ -41,6 +40,7 @@ basepython = python3.10
commands =
pylint \
--ignore-imports=y --min-similarity-lines=15 \
+ --generated-members=os.* \
--disable=locally-disabled functest
[testenv:yamllint]
@@ -57,9 +57,6 @@ files =
commands =
yamllint -s {[testenv:yamllint]files}
-[testenv:py37]
-commands = nosetests functest/tests/unit
-
[testenv:bashate]
basepython = python3.10
files =
@@ -71,7 +68,6 @@ files =
build.sh
commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
-
[testenv:bandit]
basepython = python3.10
commands = bandit -r functest -x tests -n 5 -ll -s B601,B602
@@ -82,12 +78,9 @@ dirs =
functest/tests/unit/odl
functest/tests/unit/openstack/vping
functest/tests/unit/openstack/cinder
-commands = nosetests --with-coverage --cover-tests \
- --cover-package functest.opnfv_tests.sdn.odl \
- --cover-package functest.opnfv_tests.openstack.vping.vping_ssh \
- --cover-package functest.opnfv_tests.openstack.cinder.cinder_test \
- --cover-package functest.tests.unit \
- --cover-min-percentage 100 {[testenv:cover]dirs}
+commands =
+ pytest --cov=xtesting --cov-reset --cov-report html --cov-fail-under=100 \
+ {[testenv:cover]dirs}
[testenv:perm]
basepython = python3.10