how to run all tests AND metric_fu

View: New views
4 Messages — Rating Filter:   Alert me  

how to run all tests AND metric_fu

by phibo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


i want to use cruisecontrol.rb to run ‘rake test’ (every time a new  
revision is in the svn repo) and ‘rake metrics:all’ (let’s say every  
24 hours). how do i have to configure cruisecontrol.rb? both rake  
tasks work. however, when i configure cruisecontrol.rb as described on  
the metric_fu website, i.e. add 'project.rake_task = ‘metrics:all’  
project.scheduler.polling_interval = 24.hours’ to the projects  
cruise_config.rb, only the metrics:all task is executed, but not the  
tests. how do i configure cruisecontrol.rb so that both are run?
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Re: how to run all tests AND metric_fu

by Brian Guthrie-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Phillipp,

The recommended way to do this is to have separate configuration
options based on the name you created the project with. See, for
example:

http://cruisecontrolrb.thoughtworks.com/documentation/manual#project_builder_configuration

Note that this requires you to have two projects configured, one as
your conventional CI project and another project purely for running
metrics. Add the second project using the cruise add command, like you
added the original.

Best of luck, and let us know if this works out for you.

Brian

On Tue, Sep 15, 2009 at 11:42 AM, Philipp Bolliger <pbolliger@...> wrote:

>
> i want to use cruisecontrol.rb to run ‘rake test’ (every time a new revision
> is in the svn repo) and ‘rake metrics:all’ (let’s say every 24 hours). how
> do i have to configure cruisecontrol.rb? both rake tasks work. however, when
> i configure cruisecontrol.rb as described on the metric_fu website, i.e. add
> 'project.rake_task = ‘metrics:all’ project.scheduler.polling_interval =
> 24.hours’ to the projects cruise_config.rb, only the metrics:all task is
> executed, but not the tests. how do i configure cruisecontrol.rb so that
> both are run?
> _______________________________________________
> Cruisecontrolrb-users mailing list
> Cruisecontrolrb-users@...
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Re: how to run all tests AND metric_fu

by Chad Woolley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Sep 15, 2009 at 9:42 AM, Philipp Bolliger <pbolliger@...> wrote:
> i want to use cruisecontrol.rb to run ‘rake test’ (every time a new revision
> is in the svn repo) and ‘rake metrics:all’ (let’s say every 24 hours). how
> do i have to configure cruisecontrol.rb? both rake tasks work. however, when
> i configure cruisecontrol.rb as described on the metric_fu website, i.e. add
> 'project.rake_task = ‘metrics:all’ project.scheduler.polling_interval =
> 24.hours’ to the projects cruise_config.rb, only the metrics:all task is
> executed, but not the tests. how do i configure cruisecontrol.rb so that
> both are run?

Can you use something like:

project.build_command = 'rake metrics:all test'

-- Chad
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Re: how to run all tests AND metric_fu

by Adam Byrtek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Sep 17, 2009 at 02:50, Chad Woolley <thewoolleyman@...> wrote:
> project.build_command = 'rake metrics:all test'

As far as I remember metrics:all runs rcov to calculate test coverage,
so you don't have to run tests again. But to have a separate interval
for tests and metrics you have to configure two separate builders with
two separate work directories and schedulers.

Best regards,
Adam

--
Adam Byrtek
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@...
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users