Skip to content
Snippets Groups Projects
Commit 4920a85a authored by Florian Schröder's avatar Florian Schröder
Browse files

Update pytest and coverage commands in GitLab CI

The pytest command in the GitLab CI configuration has been updated to also generate a coverage report. Additionally, the coverage reporting syntax has been altered to specifically target the Cobertura coverage format and specify the path for the coverage.xml file.
parent 5bf35d63
No related branches found
No related tags found
1 merge request!31Resolve "More test coverage"
Pipeline #47470 failed
......@@ -5,11 +5,13 @@ pytest:
- apt-get install -y python3-dev python3-pip graphviz graphviz-dev
- pip install pytest
- pip install .
- pytest --cov=cooperative_cuisine
- pytest --cov --cov-report term --cov-report xml:coverage.xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
when: always
reports:
cobertura: coverage.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
pages:
script:
......
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