added test report artifact

This commit is contained in:
2023-03-14 11:52:03 +01:00
parent bed086f95f
commit 5d97dd6224

View File

@ -16,13 +16,15 @@ tests:
XDG_RUNTIME_DIR: "/tmp/runtime-root" XDG_RUNTIME_DIR: "/tmp/runtime-root"
script: script:
- *install-grum-test - *install-grum-test
- coverage run --source=./grum -m pytest ./tests - coverage run --source=./grum -m pytest ./tests --junitxml=report-junit.xml
- coverage report - coverage report
- coverage xml - coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts: artifacts:
when: always
reports: reports:
cobertura: coverage.xml cobertura: coverage.xml
junit: report-junit.xml
tests-3.6: tests-3.6:
stage: OptionalTests stage: OptionalTests