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 ...@@ -37,7 +37,7 @@ flowchart LR
subgraph backend subgraph backend
be["Backend code"]--tested with-->rspec be["Backend code"]--tested with-->rspec
end end
be--generates-->fixtures["frontend fixtures"] be--generates-->fixtures["frontend fixtures"]
fixtures--used in-->jest fixtures--used in-->jest
``` ```
...@@ -263,6 +263,16 @@ In the event of an emergency, or false positive from this job, add the ...@@ -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 `pipeline:skip-undercoverage` label to the merge request to allow this job to
fail. 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 ## PostgreSQL versions testing
Our test suite runs against PG12 as GitLab.com runs on PG12 and 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