From 6372ea56ad71bfb5cc4d34596b0b97b66d1cf876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rajmund=20Hru=C5=A1ka?= <rajmund.hruska@gmail.com> Date: Wed, 1 Jun 2022 15:48:27 +0200 Subject: [PATCH] CI/CD: Save test result in JUnit report XML format. --- .gitlab-ci.yml | 4 ++++ Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4def72d..1d41e52 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,10 @@ unit-test-job: stage: test script: - make test + artifacts: + when: always + reports: + junit: nosetests.xml pylint-test-job: stage: test diff --git a/Makefile b/Makefile index 9fe22c5..c45ccda 100644 --- a/Makefile +++ b/Makefile @@ -120,7 +120,7 @@ pylint-test: FORCE test: FORCE @echo "\n${GREEN}*** Checking code with nosetests ***${NC}\n" - @$(NOSETESTS) + @$(NOSETESTS) --with-xunit #------------------------------------------------------------------------------- -- GitLab