Commit 6b7456df authored by Marcel Amirault's avatar Marcel Amirault

Merge branch '246499-docs-code-coverage-extraction' into 'master'

Docs: improve code coverage extraction documentation

See merge request gitlab-org/gitlab!49738
parents e07ce12b b7aaebf0
...@@ -3283,6 +3283,11 @@ job1: ...@@ -3283,6 +3283,11 @@ job1:
coverage: '/Code coverage: \d+\.\d+/' coverage: '/Code coverage: \d+\.\d+/'
``` ```
The coverage is shown in the UI if at least one line in the job output matches the regular expression.
If there is more than one matched line in the job output, the last line is used.
For the matched line, the first occurence of `\d+(\.\d+)?` is the code coverage.
Leading zeros are removed.
### `retry` ### `retry`
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/3442) in GitLab 9.5. > - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/3442) in GitLab 9.5.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment