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-21 12:30:49 +0200
commit4296302199c3c7ad853461ce19d4cdc6ed93edbe (patch)
tree49c9eeba36144ae1a1f61b798dce69163ef60440
parentcc7365b3f867023bcc22ca90ea77715aa7086747 (diff)
Remove nosetests
Change-Id: I13babcba37e7f3ce54b0ae38bd84ed2ee12ee935 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--test-requirements.txt4
-rw-r--r--tox.ini13
2 files changed, 9 insertions, 8 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 47872e03..ac898d93 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_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