プロジェクト

全般

プロフィール

機能 #764 » 0001-Follow-test-unit-testing-file-structure-manner.patch

コスモ 虹川, 2015-08-09 17:45

差分を表示:

Rakefile
1
require 'rake/testtask'
2
desc 'Run test_unit based test'
3
task :test do
4
  ruby('test/run-test.rb')
5
end
6
task :default => :test
test.rb → test/run-test.rb
5 5
failed = []
6 6
processes = {}
7 7

  
8
Dir.glob(File.dirname(__FILE__) + '/test/core/test_*').each{ |f|
8
Dir.glob(File.dirname(__FILE__) + '/core/test_*').each{ |f|
9 9
  processes[fork { require File.expand_path(f) }] = f }
10 10

  
11 11
Process.waitall.each{ |pid, stat|
    (1-1/1)