summaryrefslogtreecommitdiff
path: root/tool/lib/minitest
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-01 01:27:04 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-01 09:39:09 +0900
commite79f1941b29738d95b42f8cb5bdb159e7138cf49 (patch)
treefb15dcdd48397d026246b75f9f1ebabce97ed604 /tool/lib/minitest
parente25165b3fc72166a85ed10e49609153d72333388 (diff)
tune parallel test
This patch contains the fowllowing hacks: (1) Add "--timetable-data=FILE" option for test-all This option enables to dump timeline event contains worker, suite, and start/end time. (2) remove TestJIT in test_jit_debug.rb on parallel test. it is duplicated test. (3) move test_jit.rb and test_jit_debug.rb at first because these two tests are bottleneck of parallel tests. On my environment, `make test-all TESTS=-j12` reduced the total time 190 seconds -> 140 seconds.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3826
Diffstat (limited to 'tool/lib/minitest')
-rw-r--r--tool/lib/minitest/unit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb
index c325134e63..f70762e5d5 100644
--- a/tool/lib/minitest/unit.rb
+++ b/tool/lib/minitest/unit.rb
@@ -1405,6 +1405,7 @@ module MiniTest
def self.test_suites # :nodoc:
suites = @@test_suites.keys
+
case self.test_order
when :random
# shuffle test suites based on CRC32 of their names