Quick Tip: Cucumber Works-in-Progress

After upgrading to the latest gems, including cucumber and webrat, I noticed a deprecation message when trying to run rake features. There are new rake tasks now for running cucumber features:

So now, you can indicate which scenarios should pass and which are still be worked on, then run them separately if you like. Simply add some meta-data to your scenarios like this:

This will tag the scenario as a test that should work. If you have a work-in-progress, simply tag with @wip.

Read about some other ridiculously awesome cucumber and webrat features on the thoughtbot blog.

Posted September 30th, 2009 at 9:30 am in Ruby on Rails | Permalink

Leave a response: