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 +4 -4
- data/CHANGELOG +4 -0
- data/README.rdoc +5 -0
- data/lib/minitest/parallel_fork.rb +17 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3ea39201143c49a9886a6d8e088534321ec4083d1b1e1cbf80dbcf2a805f912
|
|
4
|
+
data.tar.gz: 8d09b179947dad7aba1db8d67db6bc4ba578e5ac2a0ece7a28645cdfffd67de6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84070499e66a0c2b5e1fb9e4dcd9d2d773a73812f35c0c55796ced661a61af1361ab10e1825f19fba4a7ea538f02d11e9a8df50d57d4f27b48eaea5d0ff6ef05
|
|
7
|
+
data.tar.gz: 3cbd02252db159fcaeeb85f6caed1c979b36af36fc57a44c0775929f71eaf3a213d2c4457644f331214fb2433e09589933b6ec415df82da4513f601336193bdf
|
data/CHANGELOG
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
105
|
+
rubygems_version: 3.6.9
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: Fork-based parallelization for minitest
|
|
108
108
|
test_files: []
|