Skip to content

appfolio/minitest-optional_retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Climate Test Coverage Gem Version

minitest-optional_retry

This plugin extends minitest to automatically rerun failed tests up to twice more. If a subsequent run passes, the suite as a whole will pass. This is useful to recover from flaky tests.

##Usage

In your Gemfile: gem 'minitest-optional_retry'

Simpy include the main module in the test classes you want to automatically retry e.g.:

require 'minitest-optional_retry'
class ArticleTest < ActiveSupport::TestCase
  extend Minitest::OptionalRetry
end

##Notes If a test ends up failing all 3 of its runs, the reported failure will be the failure of the first run.

About

automatically rerun failed tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages