Commit 102c9fb4 authored by Stan Hu's avatar Stan Hu

Merge branch 'disable-rspec-full-stacktrace' into 'master'

Disable rspec's full_backtrace on CI

See merge request gitlab-org/gitlab!40701
parents 77da5a2c 4c0830cb
...@@ -66,7 +66,11 @@ RSpec.configure do |config| ...@@ -66,7 +66,11 @@ RSpec.configure do |config|
config.display_try_failure_messages = true config.display_try_failure_messages = true
config.infer_spec_type_from_file_location! config.infer_spec_type_from_file_location!
config.full_backtrace = !!ENV['CI']
# Add :full_backtrace tag to an example if full_backtrace output is desired
config.before(:each, full_backtrace: true) do |example|
config.full_backtrace = true
end
unless ENV['CI'] unless ENV['CI']
# Re-run failures locally with `--only-failures` # Re-run failures locally with `--only-failures`
......
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