|
|
|
|
|
by algorithmmonkey
4651 days ago
|
|
Disclaimer: I'm not for or against the use of cucumber. The second claim against cucumber / gherkin is not it's fault, it's the toolset's fault. Using grep to find your step definition is not very effective. If you use a tool like Rubymine, you can jump directly to the applicable step definition through one key combination. |
|
In practice, you'll find grep is in the toolkit of far more Ruby programmers than the IDE Rubymine. And with good reason!
The real problem is step definitions with regex in them. You don't need to do this. Steak was written to avoid this problem: https://github.com/cavalle/steak
But the underlying issue described in this post is still valid - Cucumber is an unnecessary layer because it adds no value that you don't get with Capybara and your favourite testing framework.