[rspec-devel] [Cucumber] new usage formatter

aslak hellesoy aslak.hellesoy at gmail.com
Sun Mar 22 00:45:34 EDT 2009


On Sat, Mar 21, 2009 at 11:25 PM, Ben Mabey <ben at benmabey.com> wrote:

> aslak hellesoy wrote:
>
>>
>>
>> On Sat, Mar 21, 2009 at 7:12 PM, Dr Nic Williams <drnicwilliams at gmail.com<mailto:
>> drnicwilliams at gmail.com>> wrote:
>>
>>    > I'm hoping the Following TODOs from Cucumber.tmbundle can use this:
>>    >
>>    > Goto step definition from feature file.
>>
>>    Currently works with Shift+Alt+Cmd+Down
>>
>>
>> Yes, but that is based on code in the bundle right? Isn't it better to use
>> "official" Cucumber code for this?
>>
>> Aslak
>>
>
> +1.  I think we should keep as much functionality in Cucumber so other
> editors can leverage the functionality.
>
>>
>>
>>    > From a step definition be able to pull up a list of features
>>    using that step
>>    > and to jump to them.
>>
>>    Yeah I want this too.
>>
>>
>>  I'm going to take a stab at this now with the new usage formatter- very
> nice!  I think the biggest drawback to this will be speed.  For example,
> doing a dry-run on cucumber's own features takes ~2 seconds.  For a rails
> project loading up the entire environment I think this would be too slow to
> wait for everytime.  Any ideas on a caching strategy?  Storing a cached
> version of the output is easy enough, but knowing when to expire the cache
> is somewhat tricky...
>

Or maybe we could optimise. The support files don't have to be loaded, nor
do we need to instantiate a full AST (mulitline args can be skipped).

I'll try out a few things. I'm sure we can make it perform reasonably well.

Aslak


>
> -Ben
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-devel/attachments/20090322/0179617e/attachment-0001.html>


More information about the rspec-devel mailing list