# Rake test swallowing errors

**URL:** <https://www.ruby-forum.com/t/rake-test-swallowing-errors/91211>\
**Category:** Rails\
**Created:** [April 5, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/rake-test-swallowing-errors/91211 "2007-04-05T17:49:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@matt](https://www.ruby-forum.com/u/matt)\
**Post date:** [April 5, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/rake-test-swallowing-errors/91211/1 "2007-04-05T17:49:08Z")

</div>

I am trying to write a rake commit task so that before I commit  
changes to svn it executes my unit tests. I have a failing unit test,  
but the test:units is not raising the exception so my commit task  
still executes.

Example:

task :commit =\> :test do  
#should not reach because I have a failing test, but the test task  
passes anyway and executes this  
#subversion commit done here  
end
