Fernando García Samblas
2009-Jan-14 19:22 UTC
[rspec-users] [cucumber] missing the command --line option
Cucus, previous versions of cucumber had a command --line option that let you run only one scenario given its line at the feature file. Now, as far as I know, to do the same thing (run a specific scenario) I have to use the --scenario option writing the scenario name. In my opinion, since cucumber''s standard output gives you each scenario''s line number, I feel that the --line option was faster and easier to use. WDYT? -- Fernando Garc?a Samblas fernando.garcia at the-cocktail.com http://nando.lacoctelera.com The Cocktail C/ Salamanca 17 28020 Madrid +34 91 567 06 05
Matt Wynne
2009-Jan-14 21:13 UTC
[rspec-users] [cucumber] missing the command --line option
On 14 Jan 2009, at 19:22, Fernando Garc?a Samblas wrote:> > Cucus, > > previous versions of cucumber had a command --line option that let you > run only one scenario given its line at the feature file. > > Now, as far as I know, to do the same thing (run a specific > scenario) I > have to use the --scenario option writing the scenario name. > > In my opinion, since cucumber''s standard output gives you each > scenario''s line number, I feel that the --line option was faster and > easier to use. > > WDYT?Use this syntax: cucumber path/to/your.feature:41 where 41 is the line number where your scenario starts. It''s actually pretty nice as you can copy / paste it straight in from the backtrace, though it''s a shame it''s inconsistent with rpsec. Matt Wynne http://blog.mattwynne.net http://www.songkick.com
aslak hellesoy
2009-Jan-14 21:28 UTC
[rspec-users] [cucumber] missing the command --line option
On Wed, Jan 14, 2009 at 8:22 PM, Fernando Garc?a Samblas < fernando.garcia at the-cocktail.com> wrote:> > Cucus, > > previous versions of cucumber had a command --line option that let you > run only one scenario given its line at the feature file. >foo.feature:line is even faster - you can copy-paste it http://wiki.github.com/aslakhellesoy/cucumber/running-features> > Now, as far as I know, to do the same thing (run a specific scenario) I > have to use the --scenario option writing the scenario name. > > In my opinion, since cucumber''s standard output gives you each > scenario''s line number, I feel that the --line option was faster and > easier to use. > > WDYT? > > -- > Fernando Garc?a Samblas > fernando.garcia at the-cocktail.com > http://nando.lacoctelera.com > > The Cocktail > C/ Salamanca 17 > 28020 Madrid > +34 91 567 06 05 > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090114/ef5f706f/attachment.html>
Fernando García Samblas
2009-Jan-15 14:14 UTC
[rspec-users] [cucumber] missing the command --line option
aslak hellesoy escribi?:> > foo.feature:line is even faster - you can copy-paste itIn two words: awe-some :) Thanks again!> > http://wiki.github.com/aslakhellesoy/cucumber/running-featuresI should read the wiki before asking at the list I should read the wiki before asking at the list I should read the wiki before asking at the list [1000 times ;)]> > > > Now, as far as I know, to do the same thing (run a specific > scenario) I > have to use the --scenario option writing the scenario name. > > In my opinion, since cucumber''s standard output gives you each > scenario''s line number, I feel that the --line option was faster and > easier to use. > > WDYT? > > -- > Fernando Garc?a Samblas > fernando.garcia at the-cocktail.com > <mailto:fernando.garcia at the-cocktail.com> > http://nando.lacoctelera.com > > The Cocktail > C/ Salamanca 17 > 28020 Madrid > +34 91 567 06 05 > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org <mailto: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-- Fernando Garc?a Samblas fernando.garcia at the-cocktail.com http://nando.lacoctelera.com The Cocktail C/ Salamanca 17 28020 Madrid +34 91 567 06 05
Fernando García Samblas
2009-Jan-15 14:17 UTC
[rspec-users] [cucumber] missing the command --line option
Matt Wynne escribi?:> Use this syntax: > > cucumber path/to/your.feature:41Thanks Matt! "I should read usage info from top to bottom before asking in the list" "I should read usage info from top to bottom before asking in the list" "I should read usage info from top to bottom before asking in the list" [1000 times ;)]> > where 41 is the line number where your scenario starts. It''s actually > pretty nice as you can copy / paste it straight in from the backtrace, > though it''s a shame it''s inconsistent with rpsec. > > Matt Wynne > http://blog.mattwynne.net > http://www.songkick.com > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Fernando Garc?a Samblas fernando.garcia at the-cocktail.com http://nando.lacoctelera.com The Cocktail C/ Salamanca 17 28020 Madrid +34 91 567 06 05