Commit 856ce98e authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'doc-ci-pipelines-settings-fix-md' into 'master'

docs: rework coverage regex examples to work around a markdown escaping issue with the nyc example

See merge request gitlab-org/gitlab!57020
parents 300e027f 9b7ffe6f
...@@ -137,21 +137,19 @@ averaged. ...@@ -137,21 +137,19 @@ averaged.
<!-- vale gitlab.Spelling = NO --> <!-- vale gitlab.Spelling = NO -->
| Coverage Tool | Sample regular expression | - Simplecov (Ruby). Example: `\(\d+.\d+\%\) covered`.
|------------------------------------------------|-----------------------------------------------| - pytest-cov (Python). Example: `^TOTAL.+?(\d+\%)$`.
| Simplecov (Ruby) | `\(\d+.\d+\%\) covered` | - Scoverage (Scala). Example: `Statement coverage[A-Za-z\.*]\s*:\s*([^%]+)`.
| pytest-cov (Python) | `^TOTAL.+?(\d+\%)$` | - `phpunit --coverage-text --colors=never` (PHP). Example: `^\s*Lines:\s*\d+.\d+\%`.
| Scoverage (Scala) | `Statement coverage[A-Za-z\.*]\s*:\s*([^%]+)` | - gcovr (C/C++). Example: `^TOTAL.*\s+(\d+\%)$`.
| `phpunit --coverage-text --colors=never` (PHP) | `^\s*Lines:\s*\d+.\d+\%` | - `tap --coverage-report=text-summary` (NodeJS). Example: `^Statements\s*:\s*([^%]+)`.
| gcovr (C/C++) | `^TOTAL.*\s+(\d+\%)$` | - `nyc npm test` (NodeJS). Example: `All files[^|]*\|[^|]*\s+([\d\.]+)`.
| `tap --coverage-report=text-summary` (NodeJS) | `^Statements\s*:\s*([^%]+)` | - excoveralls (Elixir). Example: `\[TOTAL\]\s+(\d+\.\d+)%`.
| `nyc npm test` (NodeJS) | `All files[^|]*\|[^|]*\s+([\d\.]+)` | - `mix test --cover` (Elixir). Example: `\d+.\d+\%\s+\|\s+Total`.
| excoveralls (Elixir) | `\[TOTAL\]\s+(\d+\.\d+)%` | - JaCoCo (Java/Kotlin). Example: `Total.*?([0-9]{1,3})%`.
| `mix test --cover` (Elixir) | `\d+.\d+\%\s+\|\s+Total` | - `go test -cover` (Go). Example: `coverage: \d+.\d+% of statements`.
| JaCoCo (Java/Kotlin) | `Total.*?([0-9]{1,3})%` | - .Net (OpenCover). Example: `(Visited Points).*\((.*)\)`.
| `go test -cover` (Go) | `coverage: \d+.\d+% of statements` | - .Net (`dotnet test` line coverage). Example: `Total\s*\|\s*(\d+\.?\d+)`.
| .Net (OpenCover) | `(Visited Points).*\((.*)\)` |
| .Net (`dotnet test` line coverage) | `Total\s*\|\s*(\d+\.?\d+)` |
<!-- vale gitlab.Spelling = YES --> <!-- vale gitlab.Spelling = YES -->
......
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