rspec-multiprocess_runner 1.3.3 → 1.4.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
  SHA256:
3
- metadata.gz: db557fc5850f4428a653bb2177cdd0b6af7695ea880a865214e170ec8cd68340
4
- data.tar.gz: 1d87b86f657e4801283a0796c5caae878dffa413b310c5a9af6c2ecd317f98a7
3
+ metadata.gz: 5db8e2b7a581f2f118ff96bfa49e4bb4ff6ef2f942d278ef517f3475f42143fc
4
+ data.tar.gz: 3f80829a8f711c0df232e203edb229fb29a9d3bd20eaa8a61e540c47e83f2031
5
5
  SHA512:
6
- metadata.gz: 96ccc866ce8b807af6daa8005685ffb908b4013d6dd4f93b916dc1aa77d2d3ef57f975c96874d736c610f8eff9b330351c9ed25d3b3d23518edad1220b7640cb
7
- data.tar.gz: a09334ac0418aa5c5b3c49b2e98976618cc8ff9c53b699adad0ea9c0dbc86184861e1acd9716f4f819cebaf2ab1aaa7990a8cc51fb648fd8d73efe2e68108874
6
+ metadata.gz: a7a592c353aa4f5002333c6d8dfe9f27067e2df2f9c01b6743bae6c7da16155168e27d35ba60f3850b4c08ba55f3fc54e92d81f933109135cd1dbf6b5b2a01b7
7
+ data.tar.gz: 7ada8000d1137998bc8f6b5e6204186d3a0c3b29e3b67316beed6edd86f2031b7f22846fbaf4febfb11563f652aff1b747712090bac7c573b729b94e5721f5b3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.4.0
2
+
3
+ * Fix issue catching spec files failing outside of tests (it will now die loudly instead of passing silently).
4
+
1
5
  # 1.3.3
2
6
 
3
7
  * File output bug fix
@@ -69,7 +69,8 @@ module RSpec::MultiprocessRunner
69
69
  else
70
70
  return nil # Malformed response, assume done, cease function
71
71
  end
72
- rescue
72
+ rescue Exception => e
73
+ puts("Got exception #{e} in get_file")
73
74
  return nil # If Error, assume done, cease function
74
75
  end
75
76
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module MultiprocessRunner
3
- VERSION = "1.3.3"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
@@ -263,9 +263,9 @@ module RSpec::MultiprocessRunner
263
263
  def act_on_message_from_coordinator(message_hash)
264
264
  return handle_closed_coordinator_socket unless message_hash # EOF
265
265
  case message_hash["command"]
266
- when "quit"
266
+ when COMMAND_QUIT
267
267
  exit
268
- when "run_file"
268
+ when COMMAND_RUN_FILE
269
269
  execute_spec(message_hash["filename"])
270
270
  else
271
271
  $stderr.puts "Received unsupported command #{message_hash["command"].inspect} in worker #{pid}"
@@ -282,6 +282,7 @@ module RSpec::MultiprocessRunner
282
282
 
283
283
  ReportingFormatter.worker = self
284
284
  RSpec::Core::Runner.run(@rspec_arguments + [spec_file])
285
+ raise "Error outside of tests on #{spec_file}" if RSpec.world.non_example_failure
285
286
  send_message_to_coordinator(status: STATUS_RUN_COMPLETE, filename: spec_file)
286
287
  ensure
287
288
  @current_file = nil
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.3
4
+ version: 1.4.0
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-04 00:00:00.000000000 Z
14
+ date: 2019-10-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec