diff --git a/README.md b/README.md index 3bba01276..713c8bc78 100644 --- a/README.md +++ b/README.md @@ -374,15 +374,15 @@ build: --output-types html,cobertura # Extract just the top-level coverage number from the XML report. - - xmllint --xpath "concat('Coverage: ', 100 * string(//coverage/@line-rate), '%')" target/coverage/cobertura.xml - coverage: '/Coverage: \d+(?:\.\d+)?/' + - xmllint --xpath "concat('Coverage - ', 100 * string(//coverage/@line-rate), '%')" target/coverage/cobertura.xml + coverage: '/Coverage - \d+(?:\.\d+)?/' artifacts: paths: - target/coverage/ reports: coverage_report: coverage_format: cobertura - path: target/coverage.xml + path: target/coverage/cobertura.xml ``` This also ties into Gitlab's coverage percentage collection, so in merge requests you'll be able to see: