« Return to Thread: [ANN] Cucumber

Re: [ANN] Cucumber

by Aslak Hellesoy :: Rate this Message:

Reply to Author | View in Thread

On Fri, Aug 8, 2008 at 12:37 PM, Jake Howerton <jake.howerton@...> wrote:
> Aslak,
> Is it the intention to only be able to do one scenario per feature?  If I
> add a second scenario, I get a syntax error.

No, you can have as many scenarios as you want, and in fact you're
encouraged to.

I fixed a parser bug yesterday. It was a little finnicky with
whitespace. Try to get the latest code.
If it still fails to parse, please send me the feature file and I'll
fix any remaining parser bugs.

> If so, how are you going to organize hundreds of features?  In my existing
> stories I typically call it something like "Managing Widgets" and then put
> the scenarios for all features related to that idea within that singular
> story file.

You can use the new "FIT table" feature to have several similar
scenarios with different values, or you can split them up
in several files. Check out the examples to see the tables in action.

Cheers,
Aslak

> -Jake
> On Fri, Aug 8, 2008 at 11:48 AM, Dean Wampler <deanwampler@...> wrote:
>>
>> Aslak,
>> Thanks for the great demo of Cucumber at Agile 2008.
>> dean
>>
>> On Fri, Aug 8, 2008 at 8:58 AM, aslak hellesoy <aslak.hellesoy@...>
>> wrote:
>>>
>>> I have pushed some updates to the documentation. Especially Rails
>>> instructions (which describe Cucumber generators) should be useful for
>>> some of you.
>>>
>>> Aslak
>>>
>>> On Thu, Aug 7, 2008 at 2:26 PM, aslak hellesoy <aslak.hellesoy@...>
>>> wrote:
>>> > Nice vegetable, nice tool.
>>> >
>>> > It's my reimplementation of the story runner, addressing several
>>> > shortcomings of the current one. And I'm calling them features instead
>>> > of stories now, because that is what they are.
>>> >
>>> > http://github.com/aslakhellesoy/cucumber/ (The home page)
>>> > http://gojko.net/2008/08/06/cucumber-next-generation-ruby-bdd-tool/
>>> > (Thanks Gojko)
>>> >
>>> > Take a look - it's taking shape.
>>> >
>>> > Aslak
>>> >
>>> _______________________________________________
>>> rspec-devel mailing list
>>> rspec-devel@...
>>> http://rubyforge.org/mailman/listinfo/rspec-devel
>>
>>
>>
>> --
>> Dean Wampler
>> http://www.objectmentor.com
>> http://www.aspectprogramming.com
>> http://aquarium.rubyforge.org
>> http://www.contract4j.org
>>
>> _______________________________________________
>> rspec-devel mailing list
>> rspec-devel@...
>> http://rubyforge.org/mailman/listinfo/rspec-devel
>
>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel@...
> http://rubyforge.org/mailman/listinfo/rspec-devel
>
_______________________________________________
rspec-devel mailing list
rspec-devel@...
http://rubyforge.org/mailman/listinfo/rspec-devel

 « Return to Thread: [ANN] Cucumber