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.
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 B. http://agileconsultingllc.com
[email protected]
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 B. [email protected]
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
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 B. [email protected]