diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml index 31e4d3f71b55f4d14373cc7f90071609ad99487a..be6773be11b118e5b2d2f826c78b9a926f68e2c5 100644 --- a/.gitlab/ci/test.gitlab-ci.yml +++ b/.gitlab/ci/test.gitlab-ci.yml @@ -5,7 +5,10 @@ test:ubuntu_cpp: - docker script: - cd build_cpp - - ctest --output-on-failure + - ctest --output-junit ctest-results.xml --output-on-failure + artifacts: + reports: + junit: ctest-results.xml test:ubuntu_python: stage: test @@ -15,7 +18,10 @@ test:ubuntu_python: script: - source venv/bin/activate - cd aidge_core + - python3 -m pip install unittest-xml-reporting - python3 -m pip list - # Run on discovery all tests located in core/unit_tests/python and discard the stdout - # only to show the errors/warnings and the results of the tests - - python3 -m unittest discover -s unit_tests/ -v -b 1> /dev/null + # Run on discovery all tests located in core/unit_tests/python + - python3 -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml + artifacts: + reports: + junit: xmlrunner-results.xml