Quick Tip: Cucumber Works-in-Progress

How to use the Cucumber tagging feature to tag scenarios.

Posted by Curtis Miller Curtis Miller

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.



Velocity Labs

Need web application development, maintenance for your existing app, or a third party code review?

Velocity Labs can help.

Hire us!