Project

insanity

0.0
No commit activity in last 3 years
No release in over 3 years
Run a command repeatedly to check for differences. Handy for discovering flaky tests or verifying a change doesn't lead to instability.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.14
~> 1.11
>= 2.3.3, ~> 2.3
~> 10.0
~> 3.0
 Project Readme

Insanity Build Status

Run a command repeatedly to check for differences. Handy for discovering flaky tests or verifying a change doesn't lead to instability.

Insanity allows you to:

  • See a summary of the exit statuses
  • Save the output of each repetition

Usage

Running the following:

insanity 'rspec ./spec/my_flaky_spec.rb' -i 10

Will run the command 10 times and output something like:

..........

10 iterations complete.

Status 0	| 8 times
Status 1	| 2 times

Command options

  • -i 99 / --iterations 99: Number of many times to run the command. Default: 100.
  • -o ./tmp / --output-dir ./tmp: Save output in this directory. Each iteration is written to an individual file (combined stdout & stderr). Default: No output saved.

Installation

Install the gem directly:

gem install insanity

Don't forget to run rbenv rehash if you use Rbenv.

Alternatively add the following to your Gemfile:

gem 'insanity'

And run bundle install.

Development notes

  • rake runs the RSpec tests