Forum: Ruby Properly using Rake::TestTask

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
gga (Guest)
on 2007-03-21 22:15
(Received via mailing list)
I have a Rakefile that I am using to create and upload a gem.
However, I am having a problem with Rake::TestTask not aborting the
make when of the unit tests fails.

I'm basically doing:

spec = do |spec|
end do |t|
   t.libs << 'test'
   t.test_files = FileList['test/*.rb']
   t.verbose = true
   t.warning = true

task 'upload-gem' => ['test', 'gem'] do

task :default => ['upload-gem']

How do I make my unit tests abort the gem creation?
This topic is locked and can not be replied to.