0

I'd like Minitest to run a debugger when a test fails.

I've tried the method described in this answer, but nothing happened. A failure message was displayed as usual, no debugger.

I've also tried the method described in pry-rescue README: https://github.com/ConradIrwin/pry-rescue#minitest It does run a debugger, but the problem is when all tests are run, it runs a debugger process per each failure and, more importantly, each skipped test. All of them running simultaneously in the same terminal session (I'm using WSL2, but don't think it's what causing this). This can potentially be worked around by modifying test_helper before running a singular test, but that just makes debugger completely inefficient, compared to adding puts calls and re-running tests, so was thinking a better solution has to exist.

Paul T.
  • 61
  • 4

0 Answers0