← Back
flaky-tests rails testing tools

Run tests in random order by default

Run test in random order helps in finding flaky tests.

Just add this line to the spec configuration:

spec/spec_helper.rb 👇:

config.order = :random

You're welcomed :-)

source: https://github.com/evilmartians/terraforming-rails/blob/master/guides/flaky.md

🖖