Philipp Bolliger
2009-Sep-15 16:42 UTC
[Cruisecontrolrb-users] how to run all tests AND metric_fu
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?
Brian Guthrie
2009-Sep-16 06:21 UTC
[Cruisecontrolrb-users] how to run all tests AND metric_fu
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 at gmail.com> 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >
Chad Woolley
2009-Sep-17 00:50 UTC
[Cruisecontrolrb-users] how to run all tests AND metric_fu
On Tue, Sep 15, 2009 at 9:42 AM, Philipp Bolliger <pbolliger at gmail.com> 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
Adam Byrtek
2009-Sep-24 13:38 UTC
[Cruisecontrolrb-users] how to run all tests AND metric_fu
On Thu, Sep 17, 2009 at 02:50, Chad Woolley <thewoolleyman at gmail.com> 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