Commit 2948fd16 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'ebralitis-update-rspec-config-to-enable-shorthand-focus-metadata' into 'master'

Update RSpec config to enable test filter shorthand alias of :focus

See merge request gitlab-org/gitlab!83181
parents 53920cb3 b13ce3b9
...@@ -105,6 +105,9 @@ RSpec.configure do |config| ...@@ -105,6 +105,9 @@ RSpec.configure do |config|
# show exception that triggers a retry if verbose_retry is set to true # show exception that triggers a retry if verbose_retry is set to true
config.display_try_failure_messages = true config.display_try_failure_messages = true
# This option allows to use shorthand aliases for adding :focus metadata - fit, fdescribe and fcontext
config.filter_run_when_matching :focus
if ENV['CI'] && !QA::Runtime::Env.disable_rspec_retry? if ENV['CI'] && !QA::Runtime::Env.disable_rspec_retry?
non_quarantine_retries = QA::Runtime::Env.ci_project_name =~ /staging|canary|production/ ? 3 : 2 non_quarantine_retries = QA::Runtime::Env.ci_project_name =~ /staging|canary|production/ ? 3 : 2
config.around do |example| config.around do |example|
......
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