minitest-parallel_fork 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 617125ad38c5fbb98d110eb3374a6f4ffac5d95ffedfed197c6354e7b273d7ef
4
- data.tar.gz: 7e4768a75b06806da43547902dc02c89ae793a907ea2dc0f00dc18a5bf69ec82
3
+ metadata.gz: d3ea39201143c49a9886a6d8e088534321ec4083d1b1e1cbf80dbcf2a805f912
4
+ data.tar.gz: 8d09b179947dad7aba1db8d67db6bc4ba578e5ac2a0ece7a28645cdfffd67de6
5
5
  SHA512:
6
- metadata.gz: 79d9a44f01350fe19f9e50cfdbef0957b692ddf2fc5322ba91d2ceadf3c0e6c091681e08c8c3b5b86f9115ae3ac80055aa9c5eea8e88f076be5d9b161a888e9d
7
- data.tar.gz: e86395fb13775e0a4d11249639446ff64a5ca8743350f261cfc8f01b6b4416162e02d15b9977071f75801b95a4fe51a07832749e0493eeb78d67a2b90cd2d63c
6
+ metadata.gz: 84070499e66a0c2b5e1fb9e4dcd9d2d773a73812f35c0c55796ced661a61af1361ab10e1825f19fba4a7ea538f02d11e9a8df50d57d4f27b48eaea5d0ff6ef05
7
+ data.tar.gz: 3cbd02252db159fcaeeb85f6caed1c979b36af36fc57a44c0775929f71eaf3a213d2c4457644f331214fb2433e09589933b6ec415df82da4513f601336193bdf
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.1.1 (2025-12-18)
2
+
3
+ * Work with minitest 6+ (jeremyevans)
4
+
1
5
  === 2.1.0 (2025-07-02)
2
6
 
3
7
  * Add minitest/parallel_fork/interrupt with support handling interrupts (stackmystack, jeremyevans) (#14)
data/README.rdoc CHANGED
@@ -119,6 +119,11 @@ specs:
119
119
  spec_sqlite: 1.75x - 1.86x 2.26x - 2.65x
120
120
  spec_postgres: 1.32x - 1.40x Untested
121
121
 
122
+ = Known Issues
123
+
124
+ When using with minitest 6 and minitest-hooks, reported assertion counts may be
125
+ inaccurate, though run, failure, and error counts should still be accurate.
126
+
122
127
  = License
123
128
 
124
129
  MIT
@@ -1,7 +1,10 @@
1
1
  require 'minitest'
2
2
 
3
3
  module Minitest::Unparallelize
4
- define_method(:run_one_method, &Minitest::Test.method(:run_one_method))
4
+ # :nocov:
5
+ meth = Minitest::VERSION >= '6' ? :run : :run_one_method
6
+ # :nocov:
7
+ define_method(meth, &Minitest::Test.method(meth))
5
8
  end
6
9
 
7
10
  module Minitest
@@ -74,7 +77,13 @@ class << Minitest
74
77
  suite.extend(Minitest::Unparallelize)
75
78
  end
76
79
 
77
- suite.run(reporter, options)
80
+ if Minitest::VERSION >= '6'
81
+ suite.run_suite(reporter, options)
82
+ # :nocov:
83
+ else
84
+ suite.run(reporter, options)
85
+ end
86
+ # :nocov:
78
87
  end
79
88
 
80
89
  def parallel_fork_setup_children(suites, reporter, options)
@@ -124,12 +133,16 @@ class << Minitest
124
133
  (ENV['NCPU'] || 4).to_i
125
134
  end
126
135
 
136
+ # :nocov:
137
+ run_method = Minitest::VERSION >= '6' ? :run_all_suites : :__run
138
+ # :nocov:
139
+
127
140
  # Avoid method redefined verbose warning
128
- alias __run __run
141
+ alias_method run_method, run_method
129
142
 
130
143
  # Override __run to use a child forks to run the speeds, which
131
144
  # allows for parallel spec execution on MRI.
132
- def __run(reporter, options)
145
+ define_method(run_method) do |reporter, options|
133
146
  parallel_fork_wait_for_children(parallel_fork_setup_children(parallel_fork_suites, reporter, options), reporter)
134
147
  nil
135
148
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-parallel_fork
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.6.7
105
+ rubygems_version: 3.6.9
106
106
  specification_version: 4
107
107
  summary: Fork-based parallelization for minitest
108
108
  test_files: []