From 25879e8e6c3aaca004f95b733e11a2a2435fd63f Mon Sep 17 00:00:00 2001 From: Hsueh-Fang Yeh Date: Mon, 2 Dec 2024 13:18:56 +0800 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: