Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appfolio/minitest-optional_retry
automatically rerun failed tests
https://github.com/appfolio/minitest-optional_retry
Last synced: about 2 months ago
JSON representation
automatically rerun failed tests
- Host: GitHub
- URL: https://github.com/appfolio/minitest-optional_retry
- Owner: appfolio
- License: mit
- Created: 2015-10-07T17:49:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T19:06:00.000Z (almost 3 years ago)
- Last Synced: 2024-04-26T03:03:59.573Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/appfolio/minitest-optional_retry.png)](https://travis-ci.org/appfolio/minitest-optional_retry)
[![Code Climate](https://codeclimate.com/github/appfolio/minitest-optional_retry/badges/gpa.svg)](https://codeclimate.com/github/appfolio/minitest-optional_retry)
[![Test Coverage](https://codeclimate.com/github/appfolio/minitest-optional_retry/badges/coverage.svg)](https://codeclimate.com/github/appfolio/minitest-optional_retry/coverage)
[![Gem Version](https://badge.fury.io/rb/minitest-optional_retry.svg)](https://badge.fury.io/rb/minitest-optional_retry)
# minitest-optional_retryThis 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.