Changeset 7455
- Timestamp:
- 09/11/07 05:19:15 (1 year ago)
- Files:
-
- trunk/railties/lib/tasks/testing.rake (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/railties/lib/tasks/testing.rake
r6344 r7455 41 41 desc 'Test all units and functionals' 42 42 task :test do 43 exceptions = ["test:units", "test:functionals", "test:integration"].collect do |task|43 %w(test:units test:functionals test:integration).collect do |task| 44 44 begin 45 45 Rake::Task[task].invoke 46 46 nil 47 47 rescue => e 48 e 48 e unless e.message.starts_with?('Command failed with status (1)') 49 49 end 50 end.compact 51 52 exceptions.each {|e| puts e;puts e.backtrace }53 raise "Test failures" unless exceptions.empty?50 end.compact.each do |e| 51 puts e 52 puts " #{e.backtrace * " \n"}" 53 end 54 54 end 55 55