Skip to content
Snippets Groups Projects
Commit b4382247 authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Introduce rspec-retry (#7206)

parent 84214b86
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,7 @@ group :test do ...@@ -111,6 +111,7 @@ group :test do
gem 'microformats', '~> 4.0' gem 'microformats', '~> 4.0'
gem 'rails-controller-testing', '~> 1.0' gem 'rails-controller-testing', '~> 1.0'
gem 'rspec-sidekiq', '~> 3.0' gem 'rspec-sidekiq', '~> 3.0'
gem 'rspec-retry', '~> 0.5', require: false
gem 'simplecov', '~> 0.14', require: false gem 'simplecov', '~> 0.14', require: false
gem 'webmock', '~> 3.3' gem 'webmock', '~> 3.3'
gem 'parallel_tests', '~> 2.21' gem 'parallel_tests', '~> 2.21'
......
...@@ -495,6 +495,8 @@ GEM ...@@ -495,6 +495,8 @@ GEM
rspec-expectations (~> 3.7.0) rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0) rspec-mocks (~> 3.7.0)
rspec-support (~> 3.7.0) rspec-support (~> 3.7.0)
rspec-retry (0.5.7)
rspec-core (> 3.3)
rspec-sidekiq (3.0.3) rspec-sidekiq (3.0.3)
rspec-core (~> 3.0, >= 3.0.0) rspec-core (~> 3.0, >= 3.0.0)
sidekiq (>= 2.4.0) sidekiq (>= 2.4.0)
...@@ -715,6 +717,7 @@ DEPENDENCIES ...@@ -715,6 +717,7 @@ DEPENDENCIES
redis-rails (~> 5.0) redis-rails (~> 5.0)
rqrcode (~> 0.10) rqrcode (~> 0.10)
rspec-rails (~> 3.7) rspec-rails (~> 3.7)
rspec-retry (~> 0.5)
rspec-sidekiq (~> 3.0) rspec-sidekiq (~> 3.0)
rubocop rubocop
ruby-oembed (~> 0.12) ruby-oembed (~> 0.12)
......
require 'rspec/retry'
require 'simplecov' require 'simplecov'
GC.disable GC.disable
...@@ -11,6 +12,9 @@ end ...@@ -11,6 +12,9 @@ end
gc_counter = -1 gc_counter = -1
RSpec.configure do |config| RSpec.configure do |config|
config.verbose_retry = true
config.display_try_failure_messages = true
config.expect_with :rspec do |expectations| config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end end
...@@ -25,6 +29,10 @@ RSpec.configure do |config| ...@@ -25,6 +29,10 @@ RSpec.configure do |config|
end end
end end
config.around :each do |ex|
ex.run_with_retry retry: 3
end
config.before :suite do config.before :suite do
Chewy.strategy(:bypass) Chewy.strategy(:bypass)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment