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 +4 -4
- data/lib/parallel_tests/cli.rb +13 -10
- data/lib/parallel_tests/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa55f19001261a436907cce40642bf0bb7708add
|
4
|
+
data.tar.gz: 10ca7633d0ce856ca3580af38448fe3dbe162896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 886b24dcf05d2d7c871b5de35d56d0e8e4e02911331b3be55eb3692cbcffea575be95b3e74fcd016b6c4fee3773b1933ba4e1e83c1fe4c360a15084bafb6f677
|
7
|
+
data.tar.gz: dd15061ab2bd2d52cde61e0c39e785bfb13d8322e06719c87cb66d0e6973ff83c85d525225fbfe261bde0263d3737b63b7a4107c4fe05d9b6dc92847b6b56698
|
data/lib/parallel_tests/cli.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
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
|
|
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:
|
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-
|
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.
|
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
|