Start ruby debugger if rspec test fails

前端 未结 6 1792
谎友^
谎友^ 2021-02-05 05:11

Often, when a test fails, I spend quite sometime trying to figure out the what caused it to fail. It\'d be useful if RSpec could kick off a Ruby debugger when the test fails, so

6条回答
  •  日久生厌
    2021-02-05 05:29

    You can use plymouth gem https://github.com/banister/plymouth for that. It is using pry though, a (better) alternative to irb.

    HTH

提交回复
热议问题