Introduce rspec-retry (#7206)
This commit is contained in:
parent
84214b864c
commit
b438224751
3 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
require 'rspec/retry'
|
||||
require 'simplecov'
|
||||
|
||||
GC.disable
|
||||
|
@ -11,6 +12,9 @@ end
|
|||
gc_counter = -1
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.verbose_retry = true
|
||||
config.display_try_failure_messages = true
|
||||
|
||||
config.expect_with :rspec do |expectations|
|
||||
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
||||
end
|
||||
|
@ -25,6 +29,10 @@ RSpec.configure do |config|
|
|||
end
|
||||
end
|
||||
|
||||
config.around :each do |ex|
|
||||
ex.run_with_retry retry: 3
|
||||
end
|
||||
|
||||
config.before :suite do
|
||||
Chewy.strategy(:bypass)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue