test-queue-patched 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c22a16c63770cebc1d74b4daf3f50b1ba2195736
4
- data.tar.gz: 501d9fe8071639c8d8e403d2463f9c0330e089f1
3
+ metadata.gz: a57ae43da9afe84f0ffe7aaec1c4430a78000c38
4
+ data.tar.gz: 2e366401b2243cc427c2aa3688e6f0b56589a092
5
5
  SHA512:
6
- metadata.gz: 44049ae27cb810b32bc079b57c3ca7b550526cb0d6ad7c02ef4cdafae64165b7be063177f67b520c6a9257b52eae0312497b2faad0bfd5736943d367a0956a0e
7
- data.tar.gz: b4bd46ffa050eeef91e4a4464a1f285f85b8bab251744a0e6cd3539cb537765b36db5021b1551e8ad49c99a2f93d54c06d0a412e60f57ea9e227f7df4c877f35
6
+ metadata.gz: 0f7571ac5e6d402fce1adc521bb03e1e04844c96ef5db6ff1c9fdd853e80f6671679c033e9e01ac0c1856ef3ff41dc0760c32311b3b582e5450d50ab5131316f
7
+ data.tar.gz: f08a31ee43f8a4e1a14918f953f8af069761e92cbb68cd812d9f675941ce6ad6f9c97c307ea114b9dc9b99a215b6e824e4eacab17e6b71badb72efc018d3d4ca
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  .test_queue_stats
2
+ *.gem
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  ## test-queue-patched
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/test-queue.svg)](https://rubygems.org/gems/test-queue)
4
- [![Build Status](https://travis-ci.org/tmm1/test-queue.svg?branch=master)](https://travis-ci.org/tmm1/test-queue)
3
+ [![Gem Version](https://badge.fury.io/rb/test-queue-patched.svg)](https://rubygems.org/gems//test-queue-patched)
5
4
 
6
5
  ### patches
7
6
 
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ Bundler::GemHelper.install_tasks
@@ -26,6 +26,14 @@ module TestQueue
26
26
  worker.summary = worker.lines.grep(/ examples?, /).first
27
27
  worker.failure_output = worker.output[/^Failures:\n\n(.*)\n^Finished/m, 1]
28
28
  end
29
+
30
+ # clean exit to make sure at_exit {} hooks run (used by simplecov)
31
+ # https://github.com/instructure/canvas-lms/blob/039207c04faa67503633e4caf554dbc49cc78549/script/rspec-queue#L43
32
+ def summarize
33
+ estatus = @completed.inject(0) { |s, worker| s + (worker.status.exitstatus || 1) }
34
+ estatus = [estatus, 255].min
35
+ exit estatus
36
+ end
29
37
  end
30
38
  end
31
39
 
data/lib/test_queue.rb CHANGED
@@ -1,3 +1,5 @@
1
+ $stdout.sync = $stderr.sync = true
2
+
1
3
  if !IO.respond_to?(:binread)
2
4
  class << IO
3
5
  alias :binread :read
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'test-queue-patched'
3
- s.version = '0.4.3'
3
+ s.version = '0.4.4'
4
4
  s.summary = 'parallel test runner'
5
5
  s.description = 'minitest/rspec parallel test runner for CI environments'
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-queue-patched
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
@@ -43,6 +43,7 @@ files:
43
43
  - Gemfile-testunit.lock
44
44
  - Gemfile.lock
45
45
  - README.md
46
+ - Rakefile
46
47
  - bin/cucumber-queue
47
48
  - bin/minitest-queue
48
49
  - bin/rspec-queue