首页 文章
  • 7 votes
     answers
     views

    使用pry-rescue来调试Cucumber步骤中的异常

    我已经为我的Cucumber功能添加了一个Around钩子,我曾希望在抛出异常时让pry-rescue启动pry: Around do |scenario, block| Pry::rescue do block.call end end 肯定会调用Around钩子,但步骤中抛出的异常不会被拯救 . 例如 . 这一步: When(/^I perform the action$/)...

热门问题