Thank you.
John Lawrence
--
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.
Aslak,
Thank you for your reply. Regarding #1, I figured output could simply
remain the way it is.
I mostly use a fairly "quiet" output format
anyhow, just really wanna know when something fails.
Your question #2 was really my question. I was wondering specifically
if there was a way in Gherkin to signify "the following Examples table
should be read as transposed"? It seems the answer is no.
I'm wondering too if I may be using Cucumber in ways it was not
intended, since you and others would probably have wanted to transpose
example tables before if doing what I'm doing.
In my case I'm working
on an application that has a routing system that actually looks in the
database to decide which routes.rb files to include (sort of like meta-
programmed routes). Definitely not how I would have done things, but
difficult to change it at this point. As a result I cannot use Rspec
to test controllers, since it apparently looks for routing information
at a fairly low level and chokes on any routes not in ./config/
routes.rb (none of mine are). Cucumber on the other hand seems to
behave like a browser (less JScript)
and can therefore do anything our
users can, so the specific case in which I'm needing a transposed
example table is testing to see that the controller behaves as
expected.
That's the long version. For now, I'll just go with the mile-wide
table. Thanks again.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> I'm wondering too if I may be using Cucumber in ways it was not
> intended, since you and others would probably have wanted to transpose
> example tables before if doing what I'm doing.
I don't know if this will help in your case, but can you reduce the number of columns by pushing the details down inside the step definition? Is it possible to abstract the language of your step so that you give a general name to the combination, then look up the values implied by that name in a table you store inside the step definition?
So rather than a bunch of imperative steps that say:
Given... When I fill in "field1" with <field1>
And I fill in "field2" with <field2>
...
And I fill in "fieldN" with <fieldN>
Then I should see <expected_text>
... you can have something more like this:
Given I fill in the fields with an incomplete set of values
Then I should see "your form is incomplete"
Given I fill in the fields with a correct set of values
Then I should see "thanks"
...which would reduce into a much smaller examples table. See what I mean?
cheers,
Matt