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
Branches
Tags
1 merge request!31Resolve "More test coverage"
Pipeline #47470 failed
...@@ -5,11 +5,13 @@ pytest: ...@@ -5,11 +5,13 @@ pytest:
- apt-get install -y python3-dev python3-pip graphviz graphviz-dev - apt-get install -y python3-dev python3-pip graphviz graphviz-dev
- pip install pytest - pip install pytest
- pip install . - 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: artifacts:
when: always
reports: reports:
cobertura: coverage.xml coverage_report:
coverage_format: cobertura
path: coverage.xml
pages: pages:
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment