Commit 39127498 authored by Amy Qualls's avatar Amy Qualls

Merge branch 'document-nocov-for-undercover' into 'master'

Document how to disable undercover code coverage

See merge request gitlab-org/gitlab!80879
parents 951bfb8a e8618af9
......@@ -37,7 +37,7 @@ flowchart LR
subgraph backend
be["Backend code"]--tested with-->rspec
end
be--generates-->fixtures["frontend fixtures"]
fixtures--used in-->jest
```
......@@ -263,6 +263,16 @@ In the event of an emergency, or false positive from this job, add the
`pipeline:skip-undercoverage` label to the merge request to allow this job to
fail.
You can disable the `undercover` code coverage check by wrapping the desired block of code in `# :nocov:` lines:
```ruby
# :nocov:
def some_method
# code coverage for this method will be skipped
end
# :nocov:
```
## PostgreSQL versions testing
Our test suite runs against PG12 as GitLab.com runs on PG12 and
......
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