This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This script can be used to detect simple order dependencies if one of tests is failing when some other test(or tests, independently) is being run before it. | |
## Script will not give reliable results if the dependency is complex - e.g. two specific tests must be run before for affected one to fail. | |
## Script will refine results with each rspec run: more runs will result smaller UNSAFE lists. Files from previous script runs are used too | |
## Ensure that you have config.order = 'random' in RSpec.configure block . | |
## Running rspec with different seeds to collect data | |
RSPEC_RUN_COUNT = 5 #set to 0 to analyze already existing rspec_*.txt files | |
RSPEC_RUN_COUNT.times do |