I need to run tests nightly on Rails apps, with automated reporting when the tests fail so that someone can address the issue. However AFAIK rake always returns 0 even if tests failed. Am I missing something? I''d like to open an enhancement request with Rails if this is something that should be added. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 28, 2008, at 7:27 PM, rehevkor5 wrote:> I need to run tests nightly on Rails apps, with automated reporting > when the tests fail so that someone can address the issue. > > However AFAIK rake always returns 0 even if tests failed. > > Am I missing something? I''d like to open an enhancement request with > Rails if this is something that should be added.That''s not the case for me. I often do something like: svn up && rake test && svn ci && cap deploy If changes pulled from the repository cause tests to fail/error, the checkin isn''t run. Knowing what platform you''re running on would help. ;-) -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hmm, well at least it works for you. I should be specific. I am running rake test:units and test:functionals separately, because rake test runs units and functionals but then fails with an odd Oracle error. I will investigate and see whether plain rake test gives the expected return value. My environment is Solaris on Opteron. -Shannon On Jan 28, 6:36 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> On Jan 28, 2008, at 7:27 PM, rehevkor5 wrote: > > > I need to run tests nightly on Rails apps, with automated reporting > > when the tests fail so that someone can address the issue. > > > However AFAIK rake always returns 0 even if tests failed. > > > Am I missing something? I''d like to open an enhancement request with > > Rails if this is something that should be added. > > That''s not the case for me. I often do something like: > > svn up && rake test && svn ci && cap deploy > > If changes pulled from the repository cause tests to fail/error, the > checkin isn''t run. > > Knowing what platform you''re running on would help. ;-) > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
what versions of Rake and the Oracle adapter are you using? I was running into an odd problem a few months back with a finalizer defined in the MySQL adapter that had a bug and would cause somewhat random testing failures in rake which would go away if I tried to --trace them or even run test:units explicitly. -Rob On Jan 29, 2008, at 11:56 AM, rehevkor5 wrote:> > Hmm, well at least it works for you. > > I should be specific. I am running rake test:units and > test:functionals separately, because rake test runs units and > functionals but then fails with an odd Oracle error. I will > investigate and see whether plain rake test gives the expected return > value. > > My environment is Solaris on Opteron. > > -Shannon > > On Jan 28, 6:36 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: >> On Jan 28, 2008, at 7:27 PM, rehevkor5 wrote: >> >>> I need to run tests nightly on Rails apps, with automated reporting >>> when the tests fail so that someone can address the issue. >> >>> However AFAIK rake always returns 0 even if tests failed. >> >>> Am I missing something? I''d like to open an enhancement request >>> with >>> Rails if this is something that should be added. >> >> That''s not the case for me. I often do something like: >> >> svn up && rake test && svn ci && cap deploy >> >> If changes pulled from the repository cause tests to fail/error, the >> checkin isn''t run. >> >> Knowing what platform you''re running on would help. ;-) >> >> -Rob >> >> Rob Biedenharn http://agileconsultingllc.com >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rake 0.7.3 Not sure about the oracle adapter. The fact that I can''t run "rake test" isn''t really an issue for me. I''m more concerned about getting a meaningful return value from "rake test:units" and "rake test:functionals" On Jan 29, 12:27 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> what versions of Rake and the Oracle adapter are you using? I was > running into an odd problem a few months back with a finalizer defined > in the MySQL adapter that had a bug and would cause somewhat random > testing failures in rake which would go away if I tried to --trace > them or even run test:units explicitly. > > -Rob > > On Jan 29, 2008, at 11:56 AM, rehevkor5 wrote: > > > > > Hmm, well at least it works for you. > > > I should be specific. I am running rake test:units and > > test:functionals separately, because rake test runs units and > > functionals but then fails with an odd Oracle error. I will > > investigate and see whether plain rake test gives the expected return > > value. > > > My environment is Solaris on Opteron. > > > -Shannon > > > On Jan 28, 6:36 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > wrote: > >> On Jan 28, 2008, at 7:27 PM, rehevkor5 wrote: > > >>> I need to run tests nightly on Rails apps, with automated reporting > >>> when the tests fail so that someone can address the issue. > > >>> However AFAIK rake always returns 0 even if tests failed. > > >>> Am I missing something? I''d like to open an enhancement request > >>> with > >>> Rails if this is something that should be added. > > >> That''s not the case for me. I often do something like: > > >> svn up && rake test && svn ci && cap deploy > > >> If changes pulled from the repository cause tests to fail/error, the > >> checkin isn''t run. > > >> Knowing what platform you''re running on would help. ;-) > > >> -Rob > > >> Rob Biedenharn http://agileconsultingllc.com > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---