Matt Wynne
2008-Sep-01 17:08 UTC
[rspec-users] Cucumber: Running a single feature / scenario
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? cheers, Matt ---- http://blog.mattwynne.net http://songkick.com In case you wondered: The opinions expressed in this email are my own and do not necessarily reflect the views of any former, current or future employers of mine. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080901/2f7f5baf/attachment.html>
David Chelimsky
2008-Sep-01 19:45 UTC
[rspec-users] Cucumber: Running a single feature / scenario
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 to add a feature request at http://rspec.lighthouseapp.com/projects/16211.
aslak hellesoy
2008-Sep-01 20:30 UTC
[rspec-users] Cucumber: Running a single feature / scenario
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 freeYes there is. It''s been in Cucumber for at least a month.> 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 >
David Chelimsky
2008-Sep-01 20:31 UTC
[rspec-users] Cucumber: Running a single feature / scenario
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 >
Matt Wynne
2008-Sep-01 22:58 UTC
[rspec-users] Cucumber: Running a single feature / scenario
On 1 Sep 2008, at 21:30, aslak hellesoy wrote:> 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. > > AslakThanks Aslak. i''ve added a bit more detail to the github wiki to explain the line number thing.
Pirkka Hartikainen
2009-Jul-08 07:52 UTC
[rspec-users] Cucumber: Running a single feature / scenario
--line option has been deprecated, use the colon syntax instead. cucumber path/to/file.feature --line 33 has become cucumber path/to/file.feature:33 PS. updating this thread because of a high google page rank, it''s the first search result for "cucumber running a single scenario" -- Posted via http://www.ruby-forum.com/.
Roger Pack
2011-May-20 17:22 UTC
[rspec-users] Cucumber: Running a single feature / scenario
cucumber path/to/file.feature --line 33 seems to still work (google led me here, too). -- Posted via http://www.ruby-forum.com/.
Nishith R.
2011-Aug-23 05:24 UTC
[rspec-users] Cucumber: Running a single feature / scenario
For sake of completness, if you are using bundle in rails3, and don''t want to invoke rake [to save init time], you can also execute it the following way: bundle exec cucumber --guess --profile default path/feature_name.feature:line_number HTH Nishith -- Posted via http://www.ruby-forum.com/.
Nishith R.
2011-Aug-23 05:25 UTC
[rspec-users] Cucumber: Running a single feature / scenario
For sake of completeness, if you are using bundle in rails3, and don''t want to invoke rake [to save init time], you can also execute it the following way: bundle exec cucumber --guess --profile default path/feature_name.feature:line_number HTH Nishith -- Posted via http://www.ruby-forum.com/.
Justin Ko
2011-Aug-23 11:57 UTC
[rspec-users] Cucumber: Running a single feature / scenario
Sent from my iPhone On Aug 22, 2011, at 11:25 PM, "Nishith R." <lists at ruby-forum.com> wrote:> For sake of completeness, if you are using bundle in rails3, and don''t > want to invoke rake [to save init time], you can also execute it the > following way: > > bundle exec cucumber --guess --profile default > path/feature_name.feature:line_number > > HTH > Nishith > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-usersCucumber has its own mailing list.