Re:Steak 1.0 released or Why Cucumber might not be your best...
by YakiSauce on Tuesday November 23, 2010 @11:48AM
(#1934309)
In defense of Cucumber, I've been a rails developer for more than 2 years and I still find it easier to read English than Ruby. I think the extra layer of abstraction is well worth the effort when reading over other people's tests.
Re:Steak 1.0 released or Why Cucumber might not be your best...
by bryanlarsen on Friday November 26, 2010 @10:18PM
(#1944181)
Have you actually used Webrat? It reads English with extra punctuation. Here's an example from a test I happen to have open at this exact moment:
visit "/special_recipes/new"
fill_in "special_recipe[name]", :with => "Pie"
select "Test User", :from => "special_recipe[user_id]"
click_button "Create Special Recipe"
The mind naturally skips the punctuation. It actually reads easier than some Cucumber tests I've seen.
Re:Steak 1.0 released or Why Cucumber might not be your best...
by spooneybarger on Tuesday November 23, 2010 @01:20PM
(#1934743)
If you are going to make a blanket offhand statement like:
"actively harmful like cucumber was"
I think you should provide some basis for that. Some examples of how you think cucumber is harmful.
Re:Steak 1.0 released or Why Cucumber might not be your best...
by bryanlarsen on Friday November 26, 2010 @10:17PM
(#1944179)
Cucumber is very expensive -- it requires you to maintain a set of rules to map English to ruby. And it causes people to continually fiddle with stuff just so that the English reads write. And it adds an abstraction layer, which are also "expensive".
Great expense, little gain -> actively harmful to projects.
You end up spending lots of "testing time" fiddling with cucumber stuff. It feels productive, but you'd have more, better tests writing straight into webrat
If steak becomes the meme of the day, at least it isn't actively harmful like cucumber was.