aboutsummaryrefslogtreecommitdiffstats
path: root/test/testunit/tests_for_parallel/misc.rb
blob: c0fa31d79858d53bad747dfcac553d3642de1a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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