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
No related merge requests found
...@@ -5,7 +5,10 @@ test:ubuntu_cpp: ...@@ -5,7 +5,10 @@ test:ubuntu_cpp:
- docker - docker
script: script:
- cd build_cpp - 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: test:ubuntu_python:
stage: test stage: test
...@@ -15,7 +18,10 @@ test:ubuntu_python: ...@@ -15,7 +18,10 @@ test:ubuntu_python:
script: script:
- source venv/bin/activate - source venv/bin/activate
- cd aidge_core - cd aidge_core
- python3 -m pip install unittest-xml-reporting
- python3 -m pip list - python3 -m pip list
# Run on discovery all tests located in core/unit_tests/python and discard the stdout # Run on discovery all tests located in core/unit_tests/python
# only to show the errors/warnings and the results of the tests - python3 -m xmlrunner discover -s unit_tests/ -v -b --output-file xmlrunner-results.xml
- python3 -m unittest discover -s unit_tests/ -v -b 1> /dev/null 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