coverage reporting in gitlab
- gitlab requires regex parsing of command output for coverage reporting https://docs.gitlab.com/ee/ci/yaml/README.html#coverage
- related is a change needed to the gitlab cookiecutter template to automatically provision coverage reporting
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3dc1cae..7fad546 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -145,6 +145,7 @@ unit-tests-coverage:
stage: tests
variables:
TARGET: unit-test --check ${UNITTEST_COVERAGE_THRESHOLD}
+ coverage: "^TOTAL.+?(\d+\%)$"
- introduce an option to output coverage report to console for coverage parsing (should exist but doesn't seem to work?)
- report the coverage total to stdout for coverage parsing
Edited by Russell