aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2022-10-20 16:48:37 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2022-10-20 17:53:30 +0200
commitb33276d0596b86176df7595f26d5e7bb56a9016b (patch)
tree22764dde2770dce4a9a89f285f26c1734d3e91e9
parent651fbe30a574fde8c62e7b73b3f05e40fba6e58b (diff)
Fix tox list
Change-Id: Ie996cbf5751e757cedf79d03f3a9b2649183f250 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--test-requirements.txt4
-rw-r--r--tox.ini18
2 files changed, 10 insertions, 12 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index 30d81ded..04a0312e 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -3,7 +3,9 @@
# process, which may cause wedges in the gate later.
coverage!=4.4 # Apache-2.0
mock!=4.0.0,!=4.0.1 # BSD
-nose # LGPL
+pytest # MIT
+pytest-html #MPL-2.0
+pytest-cov
flake8 # MIT
pylint # GPLv2
yamllint
diff --git a/tox.ini b/tox.ini
index 3dfb5895..43c8e67a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = pep8,pylint,yamllint,bashate,py39,bandit,perm
+envlist = pep8,pylint,yamllint,bashate,py310,bandit,perm
[testenv]
pip_version = pip==20.2.4
@@ -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_kubernetes \
- --cover-xml \
- --cover-html \
- functest_kubernetes
+commands =
+ pytest \
+ --junit-xml=junit.xml \
+ --html=report.html --self-contained-html \
+ --cov=xtesting --cov-reset --cov-report html \
+ functest_kubernetes
[testenv:pep8]
basepython = python3.10
@@ -40,9 +39,6 @@ commands =
basepython = python3.10
commands = bandit -r functest_kubernetes -x tests -n 5 -ll
-[testenv:py37]
-commands = nosetests functest_kubernetes
-
[testenv:bashate]
basepython = python3.10
files =