As some of us have been using cucumber for quite a while now, I may not
the only one wishing his many steps ran a bit faster.
Let’s try to put together a quick FAQ for people looking to speed up
Here’s my ideas:
- Consolidate steps
You only need to test login for each login case, not for each time you
testing some sort of logged in functionality.
In most cases you can just post to sessions/create rather than filling
1a) Don’t use GivenScenario
Instead, make one step that will quickly do what the scenario you want
start at the end of does. E.g. rather than fill in a form and post to a
controller to create an object, just create the object in its own step.
- Use the profiler format
I’ve only tried this a few times, but the profile formatting appears to
Anybody else have any tips?