test-queue 0.4.1 → 0.4.2
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/Gemfile-cucumber1-3.lock +1 -1
- data/Gemfile-cucumber2-4.lock +1 -1
- data/Gemfile-minitest4.lock +1 -1
- data/Gemfile-minitest5.lock +1 -1
- data/Gemfile-rspec2-1.lock +1 -1
- data/Gemfile-rspec3-0.lock +1 -1
- data/Gemfile-rspec3-1.lock +1 -1
- data/Gemfile-rspec3-2.lock +1 -1
- data/Gemfile-testunit.lock +1 -1
- data/Gemfile.lock +1 -1
- data/lib/test_queue/runner.rb +4 -4
- data/test-queue.gemspec +1 -1
- data/test/minitest5.bats +7 -0
- data/test/samples/sample_minitest5.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c919d302e14f5b2acf5fe2311c3aa30591ba2ad
|
4
|
+
data.tar.gz: d47c906e667f8709b771667594c58bdb2d6f6abf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 993127c3b76dc9855c1d0b3b38a85b5bea1e7a43fd5533a725b728c702bc34d8b1c503dddfae693d59381de8b44eceff39879751a15aeffc917376f94ac51c05
|
7
|
+
data.tar.gz: 0841ce47fbebdd598a6c61b60f235b091a005a94dddef5fc1d161535c59aaeb2a2ce1227a5d08d4401b2f29a090b957ebe24db1d3bc6d67ac6622b5ab3d23947
|
data/Gemfile-cucumber1-3.lock
CHANGED
data/Gemfile-cucumber2-4.lock
CHANGED
data/Gemfile-minitest4.lock
CHANGED
data/Gemfile-minitest5.lock
CHANGED
data/Gemfile-rspec2-1.lock
CHANGED
data/Gemfile-rspec3-0.lock
CHANGED
data/Gemfile-rspec3-1.lock
CHANGED
data/Gemfile-rspec3-2.lock
CHANGED
data/Gemfile-testunit.lock
CHANGED
data/Gemfile.lock
CHANGED
data/lib/test_queue/runner.rb
CHANGED
@@ -146,7 +146,7 @@ module TestQueue
|
|
146
146
|
unassigned_suites = []
|
147
147
|
@failures = ''
|
148
148
|
@completed.each do |worker|
|
149
|
-
estatus += worker.status.exitstatus
|
149
|
+
estatus += (worker.status.exitstatus || 1)
|
150
150
|
@stats.record_suites(worker.suites)
|
151
151
|
worker.suites.each do |suite|
|
152
152
|
assignment = @assignments.delete([suite.name, suite.path])
|
@@ -163,13 +163,12 @@ module TestQueue
|
|
163
163
|
|
164
164
|
@failures << worker.failure_output if worker.failure_output
|
165
165
|
|
166
|
-
puts " [%2d] %60s %4d suites in %.4fs (
|
166
|
+
puts " [%2d] %60s %4d suites in %.4fs (%s %s)" % [
|
167
167
|
worker.num,
|
168
168
|
worker.summary,
|
169
169
|
worker.suites.size,
|
170
170
|
worker.end_time - worker.start_time,
|
171
|
-
worker.
|
172
|
-
worker.status.exitstatus,
|
171
|
+
worker.status.to_s,
|
173
172
|
worker.host && " on #{worker.host.split('.').first}"
|
174
173
|
]
|
175
174
|
end
|
@@ -218,6 +217,7 @@ module TestQueue
|
|
218
217
|
|
219
218
|
summarize
|
220
219
|
|
220
|
+
estatus = @completed.inject(0){ |s, worker| s + (worker.status.exitstatus || 1)}
|
221
221
|
[estatus, 255].min
|
222
222
|
end
|
223
223
|
|
data/test-queue.gemspec
CHANGED
data/test/minitest5.bats
CHANGED
@@ -128,6 +128,13 @@ assert_test_queue_force_ordering() {
|
|
128
128
|
assert_output_contains "MiniTestFailure#test_fail"
|
129
129
|
}
|
130
130
|
|
131
|
+
@test "recovers from child processes dying in an unorderly way" {
|
132
|
+
export KILL=1
|
133
|
+
run bundle exec minitest-queue ./test/samples/sample_minitest5.rb
|
134
|
+
assert_status 1
|
135
|
+
assert_output_contains "SIGKILL (signal 9)"
|
136
|
+
}
|
137
|
+
|
131
138
|
@test "minitest-queue fails when TEST_QUEUE_WORKERS is <= 0" {
|
132
139
|
export TEST_QUEUE_WORKERS=0
|
133
140
|
run bundle exec minitest-queue ./test/samples/sample_minitest5.rb
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aman Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: minitest/rspec parallel test runner for CI environments
|
14
14
|
email: ruby@tmm1.net
|