Created
November 30, 2018 16:07
-
-
Save vlad-velciov/fea76e502b2ce028d87d2bf320478f71 to your computer and use it in GitHub Desktop.
retry_tests/spec_helper2.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spec_helper.rb | |
RSpec.configure do |config| | |
... | |
# callback to be run between retries | |
config.retry_callback = proc do |example| | |
# marks this test as flaky so we can identify it even if it | |
# passed at later retries | |
example.metadata[:flaky] = true | |
end | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment