Forum: RSpec [cucumber] automation and historical

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3464536ce6396bacc132ad18d2c46489?d=identicon&s=25 Tim Walker (timw)
on 2008-12-22 20:56
(Received via mailing list)
Hi guys,

Can someone point me to information regarding:

1) running cucumber as an automated task decoupled from CI. Assuming
cron or similar.
2) parsing and storing results so they can be graphed, etc.

Many thanks in advance,

Tim
3464536ce6396bacc132ad18d2c46489?d=identicon&s=25 Tim Walker (timw)
on 2008-12-22 20:59
(Received via mailing list)
Hate to "glom on"...I was curious about the exit status from cucumber...

I did a rake features to a log file and this is the last bit:

35 steps passed
2 steps failed
4 steps skipped
1 steps pending

exit status was 0 (echo $?)

Do you guys parse this from the log or what?

Many thanks,

Tim
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2008-12-22 21:16
(Received via mailing list)
On Mon, Dec 22, 2008 at 11:52 AM, Tim Walker <walketim@gmail.com> wrote:
> Tim
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>

Hi,

Well, you can just run "rake features" from cron...

As for storing the results for graphing, you could make a custom
listener that stores the results in a CSV list.  You know
features_run,scenarios_run,passing_steps, etc etc.  Then you have a
little script that runs over the CSV file and feeds the data into a
graphing tool/lib.  You *could* actually do all of that from within a
formatter too if you want...just tally up the results and then at the
end build a graph from it.

Pat
3f37c31a4f7c9ae3743b4464dbbd4652?d=identicon&s=25 John Goodsen (Guest)
on 2008-12-22 21:29
(Received via mailing list)
what kind of graphs are you thinking?  Can they be plugged into rcumber?
0be0e4aa42aacd9a8a95c792de273ca7?d=identicon&s=25 Aslak Hellesøy (aslakhellesoy)
on 2008-12-22 22:14
(Received via mailing list)
On Mon, Dec 22, 2008 at 8:55 PM, Tim Walker <walketim@gmail.com> wrote:

>
Really??

Try running rake features in examples/i18/en
Try running it again - this time with an error added to calculator.rb

First time I get 0, second 1.

Please confirm.

Aslak
3464536ce6396bacc132ad18d2c46489?d=identicon&s=25 Tim Walker (timw)
on 2008-12-23 01:48
(Received via mailing list)
Hi Aslak,

Yes, that produced 1. I'll try it again tomorrow. So, if anything
fails the error code will be not 0. Is it always 1 or the number of
failing tests or anything else?

Thanks again,

Tim

On Mon, Dec 22, 2008 at 2:04 PM, aslak hellesoy
3464536ce6396bacc132ad18d2c46489?d=identicon&s=25 Tim Walker (timw)
on 2008-12-23 01:57
(Received via mailing list)
The standard stuff, number of tests, passing, by type, daily results
summary...things that show a consistent attention to test automation.

Let me play with rcumber. Thanks, Tim
0be0e4aa42aacd9a8a95c792de273ca7?d=identicon&s=25 Aslak Hellesøy (aslakhellesoy)
on 2008-12-23 02:16
(Received via mailing list)
Den 23. des.. 2008 kl. 01.46 skrev "Tim Walker" <walketim@gmail.com>:

> Hi Aslak,
>
> Yes, that produced 1. I'll try it again tomorrow. So, if anything
> fails the error code will be not 0. Is it always 1 or the number of
> failing tests or anything else?
>
Always 1, but I like your idea.
This topic is locked and can not be replied to.