grosser / cleanser

Find polluting test by bisecting your tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find polluting test by bisecting your tests.

Alternatives

Install

gem install cleanser

or standalone

curl https://rubinjam.herokuapp.com/pack/cleanser > cleanser && chmod +x cleanser

Usage

# whole test folder
cleanser folder folder/failing_test.rb

Running: bundle exec ruby -r./folder/failing_test.rb -e ''
Status: Success
Running: bundle exec ruby -r./folder/a_test.rb -r./folder/failing_test.rb -r./folder/b_test.rb -e ''
Status: Failure
Running: bundle exec ruby -r./folder/failing_test.rb -r./folder/b_test.rb -e ''
Status: Failure
Fails when folder/b_test.rb.rb, folder/failing_test.rb are run together

# individual files (copied from CI failure)
cleanser other_test.rb failing_test.rb yetanother_test.rb failing_test.rb --seed 12345

# rspec
cleanser other_spec.rb failing_spec.rb yetanother_spec.rb failing_spec.rb --rspec --seed 12345

# files from copy-pasted output
cleanser '"other_test.rb","failing_test.rb","yetanother_test.rb"' failing_test.rb

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status

About

Find polluting test by bisecting your tests.

License:MIT License


Languages

Language:Ruby 100.0%