From eb96908359613bc8c0e020de5fe8e0801a3a6a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rajmund=20Hru=C5=A1ka?= <rajmund.hruska@cesnet.cz> Date: Wed, 1 Jun 2022 16:04:44 +0200 Subject: [PATCH] CI/CD: Save test result in JUnit report XML format. --- .gitlab-ci.yml | 6 +++++- Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1723d7..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 @@ -105,4 +109,4 @@ pages: - public only: - master - - devel \ No newline at end of file + - devel diff --git a/Makefile b/Makefile index 119d038..6ed25d2 100644 --- a/Makefile +++ b/Makefile @@ -158,7 +158,7 @@ pylint-test: FORCE test: FORCE @echo "\n${GREEN}*** Checking code with nosetests ***${NC}\n" - @nosetests test_typedcols.py + @nosetests test_typedcols.py --with-xunit #------------------------------------------------------------------------------- -- GitLab