From f52e67b08f3cf5a435e0c2ec7f5e14bb2074bc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rajmund=20Hru=C5=A1ka?= <rajmund.hruska@cesnet.cz> Date: Tue, 21 Jun 2022 11:01:29 +0000 Subject: [PATCH] Use nose2 --- .gitlab-ci.yml | 2 +- Makefile | 2 +- nose2.cfg | 2 ++ requirements-dev.pip | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 nose2.cfg diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dfcba0f..bdb2c7f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,7 @@ unit-test-job: paths: - errors.log reports: - junit: nosetests.xml + junit: nose2-junit.xml pylint-test-job: stage: test diff --git a/Makefile b/Makefile index 24074e6..a991c47 100644 --- a/Makefile +++ b/Makefile @@ -158,7 +158,7 @@ pylint-test: FORCE test: FORCE @echo "\n${GREEN}*** Checking code with nosetests ***${NC}\n" - @python3 -W always::DeprecationWarning -m nose test_idea.py --with-xunit + @python3 -W always::DeprecationWarning -m nose2 --junit-xml #------------------------------------------------------------------------------- diff --git a/nose2.cfg b/nose2.cfg new file mode 100644 index 0000000..a7850f0 --- /dev/null +++ b/nose2.cfg @@ -0,0 +1,2 @@ +[unittest] +plugins = nose2.plugins.junitxml diff --git a/requirements-dev.pip b/requirements-dev.pip index 40ac01b..0ce119a 100644 --- a/requirements-dev.pip +++ b/requirements-dev.pip @@ -4,7 +4,7 @@ setuptools wheel twine docutils<0.18 -nose==1.3.7 +nose2==0.11.0 pyflakes==2.1.0 pylint==2.2.2 sphinx==1.8.4 -- GitLab