rspec-multiprocess_runner 1.3.1 → 1.3.3
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/CHANGELOG.md +4 -0
- data/lib/rspec/multiprocess_runner/coordinator.rb +8 -4
- data/lib/rspec/multiprocess_runner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db557fc5850f4428a653bb2177cdd0b6af7695ea880a865214e170ec8cd68340
|
4
|
+
data.tar.gz: 1d87b86f657e4801283a0796c5caae878dffa413b310c5a9af6c2ecd317f98a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96ccc866ce8b807af6daa8005685ffb908b4013d6dd4f93b916dc1aa77d2d3ef57f975c96874d736c610f8eff9b330351c9ed25d3b3d23518edad1220b7640cb
|
7
|
+
data.tar.gz: a09334ac0418aa5c5b3c49b2e98976618cc8ff9c53b699adad0ea9c0dbc86184861e1acd9716f4f819cebaf2ab1aaa7990a8cc51fb648fd8d73efe2e68108874
|
data/CHANGELOG.md
CHANGED
@@ -203,25 +203,29 @@ module RSpec::MultiprocessRunner
|
|
203
203
|
end
|
204
204
|
end
|
205
205
|
|
206
|
+
def summary_file
|
207
|
+
File.new(options.summary_filename, 'w') if (options.summary_filename)
|
208
|
+
end
|
209
|
+
|
206
210
|
def print_summary
|
207
211
|
elapsed = Time.now - @start_time
|
208
212
|
by_status_and_time = combine_example_results.each_with_object(Hash.new { |h, k| h[k] = [] }) do |result, idx|
|
209
213
|
idx[result.status] << result
|
210
214
|
end
|
211
215
|
|
212
|
-
outputs = [
|
213
|
-
outputs << File.new(options.summary_filename, 'w') if (options.summary_filename)
|
216
|
+
outputs = [$stdout, summary_file].compact
|
214
217
|
outputs.each do |output|
|
215
218
|
print_skipped_files_details(output)
|
216
219
|
print_pending_example_details(output, by_status_and_time["pending"])
|
217
220
|
print_failed_example_details(output, by_status_and_time["failed"])
|
218
221
|
print_missing_files(output)
|
219
|
-
log_failed_files(by_status_and_time["failed"].map(&:filename).uniq + @file_coordinator.missing_files.to_a) if options.log_failing_files
|
222
|
+
log_failed_files(output, by_status_and_time["failed"].map(&:filename).uniq + @file_coordinator.missing_files.to_a) if options.log_failing_files
|
220
223
|
print_failed_process_details(output)
|
221
224
|
output.puts
|
222
225
|
print_elapsed_time(output, elapsed)
|
223
226
|
output.puts failed? ? "FAILURE" : "SUCCESS"
|
224
227
|
print_example_counts(output, by_status_and_time)
|
228
|
+
output.close unless output == $stdout
|
225
229
|
end
|
226
230
|
end
|
227
231
|
|
@@ -263,7 +267,7 @@ module RSpec::MultiprocessRunner
|
|
263
267
|
end
|
264
268
|
end
|
265
269
|
|
266
|
-
def log_failed_files(failed_files)
|
270
|
+
def log_failed_files(output, failed_files)
|
267
271
|
return if failed_files.nil?
|
268
272
|
output.puts
|
269
273
|
output.puts "Writing failures to file: #{options.log_failing_files}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-multiprocess_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rhett Sutphin
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-10-
|
14
|
+
date: 2019-10-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|