Any thoughts on this?
Any thoughts on this?
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
Tim,
How often do you encounter this issue? I worry that the snippet generator could become big and complicated, making me think more about its rules than about the functionality I'm describing. Then, I don't have much problem editing the regexes on my own.
I generally just put quotes around the scenario outline fields to generate the snippets, and then remove the quotes from the gherkin and snippets.
I don't run into this problem much because I start with a scenario before generalizing it to a scenario outline.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
Personally I think the snippet generator is doing roughly the correct thing, if you think about how outlines and arguments work.
You could have a think about why are you using outlines in the first place. Nowadays, having using Cucumber for many years, I see outlines as a smell and just don't use them. Instead I push that programming down into the step definitions.
On Wed, Dec 9, 2015 at 9:42 AM, George Dinwiddie <li...@idiacomputing.com> wrote:Tim,
How often do you encounter this issue? I worry that the snippet generator could become big and complicated, making me think more about its rules than about the functionality I'm describing. Then, I don't have much problem editing the regexes on my own.
I generally just put quotes around the scenario outline fields to generate the snippets, and then remove the quotes from the gherkin and snippets.
I don't run into this problem much because I start with a scenario before generalizing it to a scenario outline.
[tim] Thanks for the response George! I can see that as a workable solution but it bugs me a bit because I don't believe this was always the case and this is how it is documented in the books, etc. Just curious when that started. It's very confusing to the folks just learning. Thanks again George! Tim
On Dec 9, 2015 23:19, "Andrew Premdas" <apre...@gmail.com> wrote:Personally I think the snippet generator is doing roughly the correct thing, if you think about how outlines and arguments work.[Tim] Thank you very, very much Andrew, but I'd have to respectfully disagree. The angle brackets in the lexicon would indicate a variable is being substituted in the regular expression in all cases.
foo bar 1
Bob says z
Given(/^Bob says z$/) do
pending # express the regexp above with the code you wish you had
end
You could have a think about why are you using outlines in the first place. Nowadays, having using Cucumber for many years, I see outlines as a smell and just don't use them. Instead I push that programming down into the step definitions.[Tim] I hear you except that I'd argue that it's a very valid way to express behavior that differs only in the data presented and that the power of data organized like this makes it easy to spot gaps in the test cases. One of the challenging parts of Specification by Example is the intersection of true concrete examples of behavior with an abstract declaration of intent. We use examples to remove ambiguity and increase understanding and then abstract the example back to a statement that can be replete with misunderstandings. Thanks again for the responses! TimOn 9 December 2015 at 14:15, Tim Walker <walk...@gmail.com> wrote:Any thoughts on this?
On Dec 3, 2015 08:22, "Tim Walker" <walk...@gmail.com> wrote:The following was with these jars:
gherkin-2.12.2.jar
cucumber-jvm-deps-1.0.5.jar
cucumber-core-1.2.4.jar
cucumber-java-1.2.4.jar
Hi,This is probably an old question but I searched the groups and i just didn't see an answer. I am seeing this in both Ruby and Java versions and this seems different from the books and existing documentation, as well as my examples and understanding.