This year I will be participating in the 2025 AIDS Lifecycle 🎉
Please consider donating on my rider page 🚲

RSpec bisect

Feb 12, 2025 #ruby #rspec

I've been using rspec for over a decade to write tests in ruby, and I just learned about the --bisect option. When executed with this option, rspec repeatedly runs subsets of a suite in order to isolate the minimal set of examples that reproduce the same failures. This can be incredibly useful when working with a particularly flakey spec with a failure case that is difficult to reproduce.