No commit activity in last 3 years
No release in over 3 years
Rerun failing minitest tests.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 5.0
 Project Readme

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.