GitLab CI Kotlin DSL • opensavvy.gitlab.ci • Job • coverage
coverage¶
Declares a regular expression
to configure how code coverage is extracted from the job output. The coverage is shown in the UI if at least one line of the job output matches regex
.
Example¶
val test by job {
script {
shell("echo Code coverage: 99%")
}
coverage("Code coverage: \d+(?:\.\d+)?")
}