mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
* test/testunit/test_parallel.rb, test/testunit/parallel/*:
Test for r30939. * lib/test/unit.rb: For test. * lib/test/parallel.rb: For test. * lib/test/unit/testcase.rb: For test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92729ad473
commit
48fa6ed529
10 changed files with 283 additions and 3 deletions
31
test/testunit/tests_for_parallel/misc.rb
Normal file
31
test/testunit/tests_for_parallel/misc.rb
Normal file
|
@ -0,0 +1,31 @@
|
|||
module Test
|
||||
module Unit
|
||||
class Worker
|
||||
def run_tests
|
||||
_run_anything :ptest
|
||||
end
|
||||
end
|
||||
class Runner
|
||||
def run_tests
|
||||
_run_anything :ptest
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
module MiniTest
|
||||
class Unit
|
||||
class << TestCase
|
||||
alias ptest_suites test_suites
|
||||
def ptest_methods;[];end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class TestCaseForParallelTest < Test::Unit::TestCase
|
||||
class << self
|
||||
undef ptest_methods
|
||||
def ptest_methods
|
||||
public_instance_methods(true).grep(/^ptest/).map { |m| m.to_s }
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue