DEV Community

Discussion on: Ruby Segmentation Fault When Running RSpec

Collapse
andy profile image
Andy Zhao (he/him) Author • Edited

Hmm that's interesting. What's bisecting? Is that the default that comes with running the rspec command? I'm using a bin command that's runs plain rspec, and now that I think about it I haven't tried running the entire test suite in guard.

Edit: No luck in guard, and judging from our bin/rspec command, doesn't seem like we are bisecting either. The investigation continues...

Collapse
tamouse profile image
Tamara Temple

rspec bisect is so very cool. let's say running in CI, you had some failures, and you want to find out if they happen to be order-dependent, or if there's a root of something failing. You pass the test command, with the seed the tests were run with and the --bisect command, and rspec will find the minimal set of tests that need to run in order to reproduce the set of failures; hopefully winnowing down where the actual failure is coming from! Definitely a useful part of the rspec toolbelt