rspec_junit_formatter 0.6.0 → 0.6.1

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: 903f156687c6fff260143332222e9950fca53b5306bcde7cf197c44f3af4acf7
4
- data.tar.gz: 1d2ffca113b3cd78b3230d66ed41268609ce38f06e50da6cd196af9073670500
3
+ metadata.gz: 892c4451f42f7fdbfe335df86dd6f910d5fc4a54b91614b2da4283490a635646
4
+ data.tar.gz: 870ebdab7dd2e600b57493ce26437cee64b73cdc1cd05b48d6f67ad7160e98e8
5
5
  SHA512:
6
- metadata.gz: f8d32b7a3b5dec828fe29c714755b3698ad8a48b1cfc92185b6f53e5eb4a6ab47adae5cb74743cbc6b5814d0a5d61d15d49b632aadd5afdede74820628796687
7
- data.tar.gz: 76537f5a365796f1e062cbfde157f8f48c163b7973ae6a1faae533cbf4684bd3c29cd26d6cb344eac8c46c0ae950f854b48f21bbf2bd28bfbf2ebab6e12b639e
6
+ metadata.gz: 4b55d404b3e056fd85dcef4712c386de35448f442abbc750b8fe9fc5d9953b79bb9552790bff53f88f67a91d7685765d9ddbb9cbefba0317d7cd2c558dabd036
7
+ data.tar.gz: aa4f7f1061266efeb3e4da1756d5a47969c8f1964174dbba23054b580a035a356d8b8880f2da47b940f423a5f2fb35371eed52990ab2540f133f49708bbe2bf5
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ��[h��bJ��9��$P�6��-�@V
1
+ ;�c��M���L���i�`-%uE���^o�_��+�=^� ���(L�֏!m �?�h+��W<c
2
+ )���@,��v�R��x䆎���Uc
data/README.md CHANGED
@@ -33,7 +33,7 @@ You can use it in combination with other [formatters][rspec-formatters], too:
33
33
  rspec --format progress --format RspecJunitFormatter --out rspec.xml
34
34
  ```
35
35
 
36
- [rspec-formatters]: https://relishapp.com/rspec/rspec-core/v/3-6/docs/formatters
36
+ [rspec-formatters]: https://rspec.info/features/3-12/rspec-core/formatters/
37
37
 
38
38
  ### Using in your project with Bundler
39
39
 
@@ -42,7 +42,7 @@ Add it to your Gemfile if you're using [Bundler][bundler]. Put it in the same gr
42
42
  ```ruby
43
43
  group :test do
44
44
  gem "rspec"
45
- gem "rspec_junit_formatter"
45
+ gem "rspec_junit_formatter", require: false
46
46
  end
47
47
  ```
48
48
 
@@ -53,7 +53,7 @@ Put the same arguments as the commands above in [your `.rspec`][rspec-file]:
53
53
  --out rspec.xml
54
54
  ```
55
55
  [bundler]: https://bundler.io
56
- [rspec-file]: https://relishapp.com/rspec/rspec-core/v/3-6/docs/configuration/read-command-line-configuration-options-from-files
56
+ [rspec-file]: https://rspec.info/features/3-12/rspec-core/configuration/read-options-from-file/
57
57
 
58
58
  ### Parallel tests
59
59
 
@@ -90,7 +90,7 @@ RSpec.configure do |config|
90
90
  end
91
91
  ```
92
92
 
93
- Note that this example captures all output from every example all the time, potentially interfering with local debugging. You might like to restrict this to only on CI, or by using [rspec filters](https://relishapp.com/rspec/rspec-core/docs/hooks/filters).
93
+ Note that this example captures all output from every example all the time, potentially interfering with local debugging. You might like to restrict this to only on CI, or by using [rspec filters](https://rspec.info/features/3-12/rspec-core/hooks/filtering/).
94
94
 
95
95
  ## Caveats
96
96
 
@@ -88,7 +88,13 @@ private
88
88
  end
89
89
 
90
90
  def failure_for(notification)
91
- strip_diff_colors(notification.message_lines.join("\n")) << "\n" << notification.formatted_backtrace.join("\n")
91
+ exception = exception_for(notification)
92
+
93
+ if aggregate_failure?(exception)
94
+ strip_diff_colors(exception.message)
95
+ else
96
+ strip_diff_colors(notification.message_lines.join("\n")) << "\n" << notification.formatted_backtrace.join("\n")
97
+ end
92
98
  end
93
99
 
94
100
  def exception_for(notification)
@@ -141,6 +147,13 @@ private
141
147
  def stderr_for(example_notification)
142
148
  example_notification.example.metadata[:stderr]
143
149
  end
150
+
151
+ def aggregate_failure?(exception)
152
+ # Introduced in rspec 3.3
153
+ return false unless defined?(RSpec::Expectations::MultipleExpectationsNotMetError)
154
+
155
+ exception.is_a?(RSpec::Expectations::MultipleExpectationsNotMetError)
156
+ end
144
157
  end
145
158
 
146
159
  # rspec-core 3.0.x forgot to mark this as a module function which causes:
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,35 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_junit_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Cochran
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain:
11
10
  - |
12
11
  -----BEGIN CERTIFICATE-----
13
- MIIDXDCCAkSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA6MQ0wCwYDVQQDDARzajI2
12
+ MIIDKDCCAhCgAwIBAgIBBTANBgkqhkiG9w0BAQsFADA6MQ0wCwYDVQQDDARzajI2
14
13
  MRQwEgYKCZImiZPyLGQBGRYEc2oyNjETMBEGCgmSJomT8ixkARkWA2NvbTAeFw0y
15
- MjA3MDQwMDQwNDZaFw0yMzA3MDQwMDQwNDZaMDoxDTALBgNVBAMMBHNqMjYxFDAS
14
+ NjEwMjAyMzA3MDhaFw0yNzEwMjAyMzA3MDhaMDoxDTALBgNVBAMMBHNqMjYxFDAS
16
15
  BgoJkiaJk/IsZAEZFgRzajI2MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkq
17
16
  hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsr60Eo/ttCk8GMTMFiPr3GoYMIMFvLak
18
17
  xSmTk9YGCB6UiEePB4THSSA5w6IPyeaCF/nWkDp3/BAam0eZMWG1IzYQB23TqIM0
19
18
  1xzcNRvFsn0aQoQ00k+sj+G83j3T5OOV5OZIlu8xAChMkQmiPd1NXc6uFv+Iacz7
20
19
  kj+CMsI9YUFdNoU09QY0b+u+Rb6wDYdpyvN60YC30h0h1MeYbvYZJx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nk5PeOxjPT/2DMuChLyTP3NYnyiHifdS
27
+ OKO8Px6knr64z1LWwB+m04k+z+D1oD6757fkD96O1C1AtMtNoQHwfNX7JSPhQSQM
28
+ z4nsMtYoPwFoGnDqvraRmVqMLL3asgAh8SYE6c4eoaX1b0r83v6aLnIh3ew=
31
29
  -----END CERTIFICATE-----
32
- date: 2022-09-29 00:00:00.000000000 Z
30
+ date: 1980-01-02 00:00:00.000000000 Z
33
31
  dependencies:
34
32
  - !ruby/object:Gem::Dependency
35
33
  name: rspec-core
@@ -149,7 +147,6 @@ licenses:
149
147
  - MIT
150
148
  metadata:
151
149
  changelog_uri: https://github.com/sj26/rspec_junit_formatter/blob/HEAD/CHANGELOG.md
152
- post_install_message:
153
150
  rdoc_options: []
154
151
  require_paths:
155
152
  - lib
@@ -164,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
161
  - !ruby/object:Gem::Version
165
162
  version: 2.0.0
166
163
  requirements: []
167
- rubygems_version: 3.3.7
168
- signing_key:
164
+ rubygems_version: 3.6.9
169
165
  specification_version: 4
170
166
  summary: RSpec JUnit XML formatter
171
167
  test_files: []
metadata.gz.sig CHANGED
Binary file