We've all been there... slow cucumber tests. It's tough to know where to begin. Recently, I added the ability to enable ruby-prof for a cucumber run. I added the following file to our features/support directory:
Then to run cucumber with ruby prof enabled:
RUBY_PROF=true cucumber features/tourbooks.feature
After cucumber finishes, profile-flat.txt and profile-graph.html should exist in the rails root tmp directory.