Skip to content
Snippets Groups Projects
Commit a8e32315 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Added test reports

parent efb97bd2
No related branches found
No related tags found
Loading
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment