Skip to content

odlp/insanity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The definition of insanity is doing the same thing over and over and expecting different results

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors