parallel_tests 1.9.0 → 2.0.0

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: 4fb10aac687b9a04a4407bfc4fe1e30c5f08ea48
4
- data.tar.gz: d931c14e1a5d0a1464ae6d25f5be2d35f104980f
3
+ metadata.gz: fa55f19001261a436907cce40642bf0bb7708add
4
+ data.tar.gz: 10ca7633d0ce856ca3580af38448fe3dbe162896
5
5
  SHA512:
6
- metadata.gz: cd851e63b561992a2115875ae3155172d2efc7ead6469ee1cc2d9c91360ef3238394615e2d92168592b408a53403edd2a2c6885261d4c66eb57ccea5fcd59063
7
- data.tar.gz: 498a0035ed38fa887740a7229ccee841b689027544ac88d4db74c511fb58df4d504a76fe7d4add0414f2476fd5ca0e4eda9fd50b12da327cc38e7fd09988995b
6
+ metadata.gz: 886b24dcf05d2d7c871b5de35d56d0e8e4e02911331b3be55eb3692cbcffea575be95b3e74fcd016b6c4fee3773b1933ba4e1e83c1fe4c360a15084bafb6f677
7
+ data.tar.gz: dd15061ab2bd2d52cde61e0c39e785bfb13d8322e06719c87cb66d0e6973ff83c85d525225fbfe261bde0263d3737b63b7a4107c4fe05d9b6dc92847b6b56698
@@ -51,7 +51,7 @@ module ParallelTests
51
51
  end
52
52
  end
53
53
 
54
- report_results(test_results)
54
+ report_results(test_results, options)
55
55
  end
56
56
 
57
57
  abort final_fail_message if any_test_failed?(test_results)
@@ -84,23 +84,26 @@ module ParallelTests
84
84
  end
85
85
  end
86
86
 
87
- def report_results(test_results)
87
+ def report_results(test_results, options)
88
88
  results = @runner.find_results(test_results.map { |result| result[:stdout] }*"")
89
89
  puts ""
90
90
  puts @runner.summarize_results(results)
91
- report_failure_rerun_commmand(test_results)
91
+
92
+ report_failure_rerun_commmand(test_results, options)
92
93
  end
93
94
 
94
- def report_failure_rerun_commmand(test_results)
95
+ def report_failure_rerun_commmand(test_results, options)
95
96
  failing_sets = test_results.reject { |r| r[:exit_status] == 0 }
96
97
  return if failing_sets.none?
97
98
 
98
- puts "\n\nTests have failed for a parallel_test group. Use the following command to run the group again:\n\n"
99
- failing_sets.each do |failing_set|
100
- command = failing_set[:command]
101
- command = command.gsub(/;export [A-Z_]+;/, ' ') # remove ugly export statements
102
- command = @runner.command_with_seed(command, failing_set[:seed]) if failing_set[:seed]
103
- puts command
99
+ if options[:verbose]
100
+ puts "\n\nTests have failed for a parallel_test group. Use the following command to run the group again:\n\n"
101
+ failing_sets.each do |failing_set|
102
+ command = failing_set[:command]
103
+ command = command.gsub(/;export [A-Z_]+;/, ' ') # remove ugly export statements
104
+ command = @runner.command_with_seed(command, failing_set[:seed]) if failing_set[:seed]
105
+ puts command
106
+ end
104
107
  end
105
108
  end
106
109
 
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '1.9.0'
2
+ VERSION = Version = '2.0.0'
3
3
  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: 1.9.0
4
+ version: 2.0.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: 2015-10-04 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.2.2
84
+ rubygems_version: 2.4.5.1
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Run Test::Unit / RSpec / Cucumber / Spinach in parallel