hi - CC is happily ignoring failing tests, even tho the webpanel reports the errors in the "errors" section. I''m using cc with a rake "cruise" task.. is the output of the task somehow getting ignored? tho this doesnt make sense as the web panel happily recognizes there are errors... finished at 10:51 PM on 12 June 2007 taking 35 seconds Build Changeset Revision 3226 committed by dc on 2007-06-13 05:50:09 failing test for cc M /dev/mangajam/trunk/app/controllers/users_controller.rb Test Failures and Errors Name: test_destroy(UsersControllerTest) Type: Error Message: NoMethodError: undefined method `non_existent'' for #<UsersController:0xb701a6a0> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:456:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:456:in `call'' /usr/local/lib/ruby/gems/1.8/gems/actionpack--- blahblah lots of error messages. Build Log /home/dev1/dev/soma/dev/cruisecontrol/trunk/projects/Mangajam/work dev1$ ruby -e require ''rubygems'' rescue nil; require ''rake''; load ''/home/dev1/dev/soma/dev/cruisecontrol/trunk/tasks/cc_build.rake''; ARGV << ''--nosearch'' << ''cc:build''; Rake.application.run /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/unit/user_test.rb" "test/unit/transfer_observer_test.rb" "test/unit/account_test.rb" "test/unit/click_observer_test.rb" "test/unit/text_answer_test.rb" "test/unit/poll_test.rb" "test/unit/shamanga_test.rb" "test/unit/info_test.rb" "test/unit/click_test.rb" "test/unit/headline_test.rb" "test/unit/affiliate_test.rb" "test/unit/transfer_test.rb" (in /home/dev1/dev/soma/dev/cruisecontrol/trunk/projects/Mangajam/work) [CruiseControl] Invoking Rake task "cruise" cruising... Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started ............. Finished in 0.512729 seconds. 13 tests, 12 assertions, 0 failures, 0 errors /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/functional/infos_controller_test.rb" "test/functional/affiliates_controller_test.rb" "test/functional/tests_controller_test.rb" "test/functional/login_controller_test.rb" "test/functional/clicks_controller_test.rb" "test/functional/friends_controller_test.rb" "test/functional/shamangas_controller_test.rb" "test/functional/regs_controller_test.rb" "test/functional/challenges_controller_test.rb" "test/functional/albums_controller_test.rb" "test/functional/users_controller_test.rb" "test/functional/user_profiles_controller_test.rb" "test/functional/polls_controller_test.rb" Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started ...........................................EEEEEEEEEEE ------------------------------------------- David "DC" Collier mailto:dc at pikkle.com +81 (0)80 6521 9559 skype: callto://d3ntaku ------------------------------------------- Pikkle ???? http://www.pikkle.com -------------------------------------------
On 13/06/2007, at 4:35 PM, dc wrote:> CC is happily ignoring failing tests, even tho the webpanel reports > the errors in the "errors" section.CC uses the exit status to determine if the build was successful or not, not the output. My guess is that your cruise task is returning a success exit status. The easiest way to return an error exit status is by raising an exception inside the cruise task if it should fail. -- tim
also, if you are using Ruby 1.8.6, this is a known bug. To fix it go back to 1.8.5. On 6/13/07, Tim Lucas <t.lucas at toolmantim.com> wrote:> > On 13/06/2007, at 4:35 PM, dc wrote: > > > CC is happily ignoring failing tests, even tho the webpanel reports > > the errors in the "errors" section. > > CC uses the exit status to determine if the build was successful or > not, not the output. My guess is that your cruise task is returning a > success exit status. > > The easiest way to return an error exit status is by raising an > exception inside the cruise task if it should fail. > > -- tim > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070613/3e089a01/attachment-0001.html
> CC is happily ignoring failing tests, even tho the webpanel reports > the errors in the "errors" section.This is a known bug in Ruby 1.8.6. I think it has been fixed in the recent patch release. -- Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070613/f9cd1f8a/attachment.html
hi - thanks for the reply> > CC is happily ignoring failing tests, even tho the webpanel reports > > the errors in the "errors" section. > > This is a known bug in Ruby 1.8.6. I think it has been fixed in the recent > patch release.this is the patch of Ruby or of CC?>> The easiest way to return an error exit status is by raising an >> exception inside the cruise task if it should fail.is this true? since the test is already raising an exception, and I''m not doing anything to catch it, i dont see how catching, then raising again would help matters? thanks, /dc
it''s a patch of ruby On 6/17/07, dc <lister at pikkle.com> wrote:> > hi - > > thanks for the reply > > > > CC is happily ignoring failing tests, even tho the webpanel reports > > > the errors in the "errors" section. > > > > This is a known bug in Ruby 1.8.6. I think it has been fixed in the > recent > > patch release. > > this is the patch of Ruby or of CC? > > >> The easiest way to return an error exit status is by raising an > >> exception inside the cruise task if it should fail. > > is this true? since the test is already raising an exception, and I''m > not doing anything to catch it, i dont see how catching, then raising > again would help matters? > > thanks, > > /dc > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070618/34eee221/attachment-0001.html