Commit 62e62b60 authored by Sean Arnold's avatar Sean Arnold Committed by Rémy Coutable

Add example of quarantine with issue to docs

parent c01f3cd5
...@@ -18,7 +18,13 @@ When a test frequently fails in `master`, ...@@ -18,7 +18,13 @@ When a test frequently fails in `master`,
should be created. should be created.
If the test cannot be fixed in a timely fashion, there is an impact on the If the test cannot be fixed in a timely fashion, there is an impact on the
productivity of all the developers, so it should be placed in quarantine by productivity of all the developers, so it should be placed in quarantine by
assigning the `:quarantine` metadata. assigning the `:quarantine` metadata with the issue URL.
```ruby
it 'should succeed', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/12345' do
expect(response).to have_gitlab_http_status(:ok)
end
```
This means it will be skipped unless run with `--tag quarantine`: This means it will be skipped unless run with `--tag quarantine`:
......
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