From 9a8f801d7352b7965fe690a599410fb50005ce67 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 17 Nov 2020 12:09:15 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- doc/development/testing_guide/flaky_tests.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/development/testing_guide/flaky_tests.md') diff --git a/doc/development/testing_guide/flaky_tests.md b/doc/development/testing_guide/flaky_tests.md index 60fdf3447bd..47ed11d76a2 100644 --- a/doc/development/testing_guide/flaky_tests.md +++ b/doc/development/testing_guide/flaky_tests.md @@ -18,7 +18,13 @@ When a test frequently fails in `master`, should be created. 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 -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`: -- cgit v1.2.1