[rspec-users] Cucumber: Running a single feature / scenario

David Chelimsky dchelimsky at gmail.com
Mon Sep 1 16:31:50 EDT 2008


On Mon, Sep 1, 2008 at 3:30 PM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On Mon, Sep 1, 2008 at 9:45 PM, David Chelimsky <dchelimsky at gmail.com> wrote:
>> On Mon, Sep 1, 2008 at 12:08 PM, Matt Wynne <matt at mattwynne.net> wrote:
>>> Am taking cucumber for a first spin today - first impressions are good.
>>> How do I go about running a single feature or scenario so I don't have to
>>> run the whole lot when I'm working on a particular one?
>>
>> There's no support for this yet in Story Runner or Cucumber. Feel free
>
> Yes there is. It's been in Cucumber for at least a month.

Sorry man - didn't realize.

>> to add a feature request at
>> http://rspec.lighthouseapp.com/projects/16211.
>
> cucumber --help
>
> Example:
>
> cucumber path/to/file.feature --line 33
>
> Or with Rake:
>
> rake features FEATURE=path/to/file.feature CUCUMBER_OPTS="--line 33"
>
> It's not documented on the Wiki yet. Pass the line number of one of
> the steps. I think it's broken when GivenScenario is involved.
>
> Aslak
>
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list