...

/

RSpec or Minitest Bisect

RSpec or Minitest Bisect

Learn how to bisect while using RSpec and Minitest.

RSpec and Minitest bisecting

Minitest and RSpec both have their own version of bisect, which solves a slightly different problem. Sometimes we’ll have a test failure caused by the order in which the tests are run. This usually means the tests aren’t completely isolated, and one test is changing the global state in a way that breaks another test. This cannot be easy to reproduce, especially if the test suite is long.

The bisect option for Minitest and RSpec gives us a minimal set of specs that reproduces the error so that we ...