parallel_tests 2.24.0 → 2.25.0
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/Readme.md +2 -2
- data/lib/parallel_tests/test/runner.rb +3 -1
- data/lib/parallel_tests/test/runtime_logger.rb +0 -34
- data/lib/parallel_tests/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88f551914ac9f5bf5326bf18ca992d9892c3c4399c8860b5e5c23140d65d5c21
|
4
|
+
data.tar.gz: 8035ed6bab7fba56b01685a15b36c62655693fb8a79caba18ffddf5f6b01120c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c07d76e5429fb4660a92095729ed1ca56afa5e74f9bdf6d13b1092ffc45e0696fbe936edb43e88251abde9a71898aeb5fc810b098b6048aa92a46a38308c211
|
7
|
+
data.tar.gz: b1b09589da2f6ff0e08abd11cc6b5a22d89a732f717f6c5f5c494d0d8e61527536a654fdefeb7d35c6f23a0bc941ca15280e7447499768ba0439590982f1298d
|
data/Readme.md
CHANGED
@@ -115,7 +115,7 @@ Rspec: Add to your `.rspec_parallel` (or `.rspec`) :
|
|
115
115
|
|
116
116
|
To use a custom logfile location (default: `tmp/parallel_runtime_rspec.log`), use the CLI: `parallel_test spec -t rspec --runtime-log my.log`
|
117
117
|
|
118
|
-
###
|
118
|
+
### Minitest
|
119
119
|
|
120
120
|
Add to your `test_helper.rb`:
|
121
121
|
```ruby
|
@@ -286,7 +286,6 @@ TODO
|
|
286
286
|
====
|
287
287
|
- fix tests vs cucumber >= 1.2 `unknown option --format`
|
288
288
|
- add unit tests for cucumber runtime formatter
|
289
|
-
- fix windows bugs / get windows CI green
|
290
289
|
|
291
290
|
Authors
|
292
291
|
====
|
@@ -371,6 +370,7 @@ inspired by [pivotal labs](https://blog.pivotal.io/labs/labs/parallelize-your-rs
|
|
371
370
|
- [Scott Olsen](https://github.com/scottolsen)
|
372
371
|
- [Andrei Botalov](https://github.com/abotalov)
|
373
372
|
- [Zachary Attas](https://github.com/snackattas)
|
373
|
+
- [David Rodríguez](https://github.com/deivid-rodriguez)
|
374
374
|
|
375
375
|
[Michael Grosser](http://grosser.it)<br/>
|
376
376
|
michael@grosser.it<br/>
|
@@ -78,7 +78,7 @@ module ParallelTests
|
|
78
78
|
cmd = "nice #{cmd}" if options[:nice]
|
79
79
|
cmd = "#{cmd} 2>&1" if options[:combine_stderr]
|
80
80
|
|
81
|
-
puts cmd if options[:verbose]
|
81
|
+
puts cmd if options[:verbose] && !options[:serialize_stdout]
|
82
82
|
|
83
83
|
execute_command_and_capture_output(env, cmd, options)
|
84
84
|
end
|
@@ -94,6 +94,8 @@ module ParallelTests
|
|
94
94
|
exitstatus = $?.exitstatus
|
95
95
|
seed = output[/seed (\d+)/,1]
|
96
96
|
|
97
|
+
output = [cmd, output].join("\n") if options[:verbose] && options[:serialize_stdout]
|
98
|
+
|
97
99
|
{:stdout => output, :exit_status => exitstatus, :command => cmd, :seed => seed}
|
98
100
|
end
|
99
101
|
|
@@ -92,38 +92,4 @@ if defined?(Minitest::Runnable) # Minitest 5
|
|
92
92
|
end
|
93
93
|
end)
|
94
94
|
end
|
95
|
-
elsif defined?(MiniTest::Unit) # Minitest 4
|
96
|
-
MiniTest::Unit.class_eval do
|
97
|
-
alias_method :_run_suite_without_runtime_log, :_run_suite
|
98
|
-
def _run_suite(*args)
|
99
|
-
ParallelTests::Test::RuntimeLogger.log_test_run(args.first) do
|
100
|
-
_run_suite_without_runtime_log(*args)
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
alias_method :_run_suites_without_runtime_log, :_run_suites
|
105
|
-
def _run_suites(*args)
|
106
|
-
result = _run_suites_without_runtime_log(*args)
|
107
|
-
ParallelTests::Test::RuntimeLogger.unique_log
|
108
|
-
result
|
109
|
-
end
|
110
|
-
end
|
111
|
-
else # Test::Unit
|
112
|
-
require 'test/unit/testsuite'
|
113
|
-
class ::Test::Unit::TestSuite
|
114
|
-
alias_method :run_without_timing, :run
|
115
|
-
|
116
|
-
def run(result, &block)
|
117
|
-
test = tests.first
|
118
|
-
|
119
|
-
if test.is_a? ::Test::Unit::TestSuite # all tests ?
|
120
|
-
run_without_timing(result, &block)
|
121
|
-
ParallelTests::Test::RuntimeLogger.unique_log
|
122
|
-
else
|
123
|
-
ParallelTests::Test::RuntimeLogger.log_test_run(test.class) do
|
124
|
-
run_without_timing(result, &block)
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements:
|
75
75
|
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.
|
77
|
+
version: 2.2.0
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|