rspec-multiprocess_runner 1.3.1 → 1.3.3

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
  SHA256:
3
- metadata.gz: a4d3eb03320ff5e8dba79f4bf21fe0cbda05915fcd22beb68fa20e866a12253b
4
- data.tar.gz: 0a3cbb76435ae9773b829c38b3ada6e0e0782267699db8c7a1762d641a3c71cc
3
+ metadata.gz: db557fc5850f4428a653bb2177cdd0b6af7695ea880a865214e170ec8cd68340
4
+ data.tar.gz: 1d87b86f657e4801283a0796c5caae878dffa413b310c5a9af6c2ecd317f98a7
5
5
  SHA512:
6
- metadata.gz: 3984c8a5243872c5a9043579774dbfa0670c6380d4c326f67d80cf0206bfaa41bd6ac1cff07d81dee5af97a9e132009773481ab26f1766976b5102f1bbc03ede
7
- data.tar.gz: 53c4f6b1720f79ad03d2e35201ff0fa7ec3c9b3867919851dffe13f9b2988454524834ce77e3d3386b599a565ac7feb98d602b451c7835ebc18e853c1b2feae8
6
+ metadata.gz: 96ccc866ce8b807af6daa8005685ffb908b4013d6dd4f93b916dc1aa77d2d3ef57f975c96874d736c610f8eff9b330351c9ed25d3b3d23518edad1220b7640cb
7
+ data.tar.gz: a09334ac0418aa5c5b3c49b2e98976618cc8ff9c53b699adad0ea9c0dbc86184861e1acd9716f4f819cebaf2ab1aaa7990a8cc51fb648fd8d73efe2e68108874
@@ -1,3 +1,7 @@
1
+ # 1.3.3
2
+
3
+ * File output bug fix
4
+
1
5
  # 1.3.1
2
6
 
3
7
  * Or use an environment variable for summary file.
@@ -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 = [STDOUT]
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}"
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module MultiprocessRunner
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.3"
4
4
  end
5
5
  end
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.1
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-03 00:00:00.000000000 Z
14
+ date: 2019-10-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec