I do want to thank all the contributors to cucumber, we have used it on many projects and it continues to "validate" the strategy. There was a recent blog post advocating custom steps rather than existing reusable ones. http://spin.atomicobject.com/2011/06/02/never-say-click-good-cucumber-system-testing-practices/
Today I posted a response arguing that reusable steps is the primary benefit of cucumber http://collectiveidea.com/blog/archives/2011/06/09/reusable-cucumber-steps/ - I wanted to share this to the list because as my company teaches cucumber to developers we keep encountering the idea "But what does this add over (test/unit | rspec | etc) ?" Showing them codebases that defines relatively few custom steps and has high step reuse drives the point home.
That has been our experience both using and teaching the framework so I wanted to put it out there.
--
Zach Moazeni
[i] Collective Idea
http://collectiveidea.com
http://ideafoundry.info
I wrote a variation of this in a comment on the blog post, but essentially:
Custom steps can be structured to be reusable within a domain, but it requires thought and discipline when they are being created. The imperative steps that ship w/ cucumber-rails require no thought or discipline when they are being created.
But we all know that the longevity of maintenance far exceeds that of the initial writing. From a practical perspective, as requirements change, etc, I find custom declarative steps easier to maintain. Here's why.
* duplication needs to be managed, regardless of what language it is written in
* imperative steps tend to introduce duplication in Gherkin
* declarative steps tend to introduce duplication in Ruby
* for me, Ruby is easier to refactor than Gherkin
Cheers,
David
Hey gals/guys,
I do want to thank all the contributors to cucumber, we have used it on many projects and it continues to "validate" the strategy. There was a recent blog post advocating custom steps rather than existing reusable ones. http://spin.atomicobject.com/2011/06/02/never-say-click-good-cucumber-system-testing-practices/
Today I posted a response arguing that reusable steps is the primary benefit of cucumber http://collectiveidea.com/blog/archives/2011/06/09/reusable-cucumber-steps/ - I wanted to share this to the list because as my company teaches cucumber to developers we keep encountering the idea "But what does this add over (test/unit | rspec | etc) ?" Showing them codebases that defines relatively few custom steps and has high step reuse drives the point home.
That has been our experience both using and teaching the framework so I wanted to put it out there.
Cheers,
David
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.