Skip to content
Snippets Groups Projects

Fixed the backend test batch to actually show the coverage.

Merged Markus Scheidgen requested to merge fix-backend-test-badge into develop
+ 11
1
@@ -168,7 +168,17 @@ python tests:
- curl http://elastic:9200/_cat/health
- cd /app
script:
- python -m pytest --cov=nomad -sv tests
- python -m pytest --cov=nomad --cov-report=xml -sv tests
after_script:
- cd /app
- cp coverage.xml $CI_PROJECT_DIR
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
artifacts:
when: always
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
rules:
- if: $CI_COMMIT_TAG
when: never
Loading