parallel_rspec 3.0.0 → 3.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fad2da0cd1720dc8803b2bf06d3ad7b0b4c71e0856667dd761e449b8c3b3ed5d
4
- data.tar.gz: 61daddf9f3a36ad24353c487a029d77f7fefd87cf1207a7e79d7326500eb99be
3
+ metadata.gz: 03ae7abd4f2eb1653e061f80e705247e364810583aed4aac7a24501f1296588c
4
+ data.tar.gz: c94ca1a3cfe2cfa28411a6f3e20ff1e606fef67b86aa3fa0090ae5e0162b4ad4
5
5
  SHA512:
6
- metadata.gz: e4f6821b9aee63cb2b55a8dcadf20e03a55570b24b2f68ad3e2e7f21f6b2f1cc4404ecddbeb3297c1b308a802876d59801bdd2f6b579e0309c80d8a7d16eeaee
7
- data.tar.gz: 392c4adcd45f25706f47f18ee0be112a30bc5f199a0bcd821d4e5531c58b7e4a4cfa0983d9c144bd44bfdfb7bba19b1d7d683a8b4c63911a2d8c6303bde8f7ab
6
+ metadata.gz: db386405db7c8cf3e00461d0745848df43dd5c5dc52fb7b453fbc325f277acae7469c789408342bd0cfe61623e610d9d7161a646b0f207513e2dabd50dd12b2f
7
+ data.tar.gz: d9b49206218078386bb59638d5a8a0e6877a7831506151c5dafb90e6cb906a2cb31f88c4768beea09fba91c3788f85c30e8030b5badd3eb3fd555b4ca0327e2a
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.1.0
4
+
5
+ * Fix example groups with context hooks not being run if any example groups without context hooks failed. Thanks @h-lame.
6
+
3
7
  ## 3.0.0
4
8
 
5
9
  * Fix reporting of `aggregate_failures` errors.
data/README.md CHANGED
@@ -24,7 +24,7 @@ And then execute:
24
24
 
25
25
  $ bundle
26
26
 
27
- This version of ParallelRSpec has been tested with RSpec 3.12.
27
+ This version of ParallelRSpec has been tested with RSpec 3.13.
28
28
 
29
29
  ## Usage
30
30
 
@@ -97,6 +97,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/willbr
97
97
  * Roger Nesbitt (@mogest)
98
98
  * Erik Paasonen (@erikpaasonen)
99
99
  * Peter Retzlaff (@peret)
100
+ * Murray Steele (@h-lame)
100
101
 
101
102
 
102
103
  ## License
@@ -33,14 +33,15 @@ module ParallelRSpec
33
33
  class MultipleExceptionMarshallingWrapper < ExceptionMarshallingWrapper
34
34
  include ::RSpec::Core::MultipleExceptionError::InterfaceTag
35
35
 
36
- attr_reader :all_exceptions, :aggregation_block_label, :aggregation_metadata, :exception_count_description
36
+ attr_reader :all_exceptions, :aggregation_block_label, :aggregation_metadata, :exception_count_description, :summary
37
37
 
38
- def initialize(class_name, message, backtrace, cause, all_exceptions, aggregation_block_label, aggregation_metadata, exception_count_description)
38
+ def initialize(class_name, message, backtrace, cause, all_exceptions, aggregation_block_label, aggregation_metadata, exception_count_description, summary)
39
39
  super(class_name, message, backtrace, cause)
40
40
  @all_exceptions = all_exceptions
41
41
  @aggregation_block_label = aggregation_block_label
42
42
  @aggregation_metadata = aggregation_metadata
43
43
  @exception_count_description = exception_count_description
44
+ @summary = summary
44
45
  end
45
46
  end
46
47
 
@@ -103,6 +104,7 @@ module ParallelRSpec
103
104
  exception.aggregation_block_label,
104
105
  exception.aggregation_metadata,
105
106
  exception.exception_count_description,
107
+ exception.summary,
106
108
  )
107
109
  else
108
110
  ExceptionMarshallingWrapper.new(
@@ -61,12 +61,12 @@ module ParallelRSpec
61
61
  @configuration.reporter.report(@world.example_count(example_groups)) do |reporter|
62
62
  @configuration.with_suite_hooks do
63
63
  with_context_hooks, without_context_hooks = example_groups.partition(&:any_context_hooks?)
64
- success = run_in_parallel(without_context_hooks, reporter)
65
- success &&= with_context_hooks.map { |g| g.run(reporter) }.all?
64
+ parallel_success = run_in_parallel(without_context_hooks, reporter)
65
+ sequential_success = with_context_hooks.map { |g| g.run(reporter) }.all?
66
66
 
67
67
  persist_example_statuses
68
68
 
69
- success ? 0 : @configuration.failure_exit_code
69
+ (parallel_success && sequential_success) ? 0 : @configuration.failure_exit_code
70
70
  end
71
71
  end
72
72
  end
@@ -1,3 +1,3 @@
1
1
  module ParallelRSpec
2
- VERSION = "3.0.0"
2
+ VERSION = "3.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Bryant, Powershop New Zealand Ltd
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-01 00:00:00.000000000 Z
11
+ date: 2026-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake