Please help me to understand why runner is not picking steps. http://pastie.org/273126 -- Posted via http://www.ruby-forum.com/.
David Chelimsky
2008-Sep-16 12:44 UTC
[rspec-users] runner does not pick steps. help please
On Tue, Sep 16, 2008 at 12:30 AM, Nubee Rails <lists at ruby-forum.com> wrote:> Please help me to understand why runner is not picking steps. > http://pastie.org/273126Need a little more information: What command are you using to run the scenarios? Where is filter defined and captured?
David Chelimsky wrote:> On Tue, Sep 16, 2008 at 12:30 AM, Nubee Rails <lists at ruby-forum.com> > wrote: >> Please help me to understand why runner is not picking steps. >> http://pastie.org/273126 > > Need a little more information: > > What command are you using to run the scenarios? > > Where is filter defined and captured?I followed the post at http://www.tomtenthij.co.uk/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app. everything understood and good. I got a working story with "ruby stories/login_story.rb" I wanted a rake task that will run a ruby script to pickup all ".story" files, pickup all "_steps.rb" and run them. this should work recursively inside /spec/stories/[more subfolders]. steps can be placed anywhere, not just /spec/stories/steps somehow, this has worked as soon as I saw your message :o) talk of special powers with David! I will post my experiences when I get this finished. -- Posted via http://www.ruby-forum.com/.
David Chelimsky wrote:> On Tue, Sep 16, 2008 at 12:30 AM, Nubee Rails <lists at ruby-forum.com> > wrote: >> Please help me to understand why runner is not picking steps. >> http://pastie.org/273126 > > Need a little more information: > > What command are you using to run the scenarios? > > Where is filter defined and captured?Why cannot we have .story and .steps files and place them anywhere in a folder hierarchy to suit business requirement? (I mean something like) + stories ++ get_a_pizza_ordered +++ order_payment_recieve.story +++ pizza.steps I will give it an attempt and post my experiences. :o) If needed, I know David is here to help. -- Posted via http://www.ruby-forum.com/.
On 16 Sep 2008, at 15:34, Nubee Rails wrote:> David Chelimsky wrote: >> On Tue, Sep 16, 2008 at 12:30 AM, Nubee Rails <lists at ruby-forum.com> >> wrote: >>> Please help me to understand why runner is not picking steps. >>> http://pastie.org/273126 >> >> Need a little more information: >> >> What command are you using to run the scenarios? >> >> Where is filter defined and captured? > > Why cannot we have .story and .steps files and place them anywhere > in a > folder hierarchy to suit business requirement? > > (I mean something like) > + stories > ++ get_a_pizza_ordered > +++ order_payment_recieve.story > +++ pizza.steps > > I will give it an attempt and post my experiences. :o) > If needed, I know David is here to help.You may want to check out cucumber. http://github.com/aslakhellesoy/cucumber/tree/master This seems to be where active development on this front is being done. 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.