Cucumber Debugging Tip

Tracking down the root of an unmet expectation is even trickier when you can’t see what the expectation is being compared to… one great resource I’ve been using as-of-late is cucumber_rails_debug. Here’s the readme, in all of its complexity:



require ‘ruby-debug’
require ‘cucumber_rails_debug/steps’

To features/support/env.rb

Then use:

Then debug # opens the debugger
Then what #prints out params, url and html

Simply being able get a hold of the resulting html by saying Then what has proven immensely helpful.

Post a Comment

Your email is never shared. Required fields are marked *