Is there an easy way to get a story output that includes comment text inside
the Scenario?
For example, I have a scenario like
Scenario: User tries to log in with invalid credentials
Card: 5732
Given a visitor
And username: invalid
Then, be able to get a summary/output that includes the Card: 5732 line.
Right now, they aren''t output, as they are ignored by the runner.
Thanks.
-Corey
--
http://www.coreyhaines.com
The Internet''s Premiere source of information about Corey Haines
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/rspec-users/attachments/20080325/5fc17909/attachment.html
aslak hellesoy
2008-Mar-25 18:00 UTC
[rspec-users] Plaint Text Stories Comments in output?
On Tue, Mar 25, 2008 at 5:56 PM, Corey Haines <coreyhaines at gmail.com> wrote:> Is there an easy way to get a story output that includes comment text inside > the Scenario? >Plain text stories are parsed and turn into objects, then written out again. There is no way to capture "unknown" lines for now unless you patch it. Aslak> For example, I have a scenario like > > Scenario: User tries to log in with invalid credentials > Card: 5732 > Given a visitor > And username: invalid > > > Then, be able to get a summary/output that includes the Card: 5732 line. > Right now, they aren''t output, as they are ignored by the runner. > > Thanks. > -Corey > > -- > http://www.coreyhaines.com > The Internet''s Premiere source of information about Corey Haines > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Tue, Mar 25, 2008 at 2:00 PM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:> On Tue, Mar 25, 2008 at 5:56 PM, Corey Haines <coreyhaines at gmail.com> > wrote: > > Is there an easy way to get a story output that includes comment text > inside > > the Scenario? > > > > Plain text stories are parsed and turn into objects, then written out > again. There is no way to capture "unknown" lines for now unless you > patch it. >Okay, thanks. After a bit more thought, I realized that listing out the contents of the story is the pretty output that I''m looking for. :) -Corey -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080325/b1098a2f/attachment.html