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 +4 -4
- checksums.yaml.gz.sig +2 -1
- data/README.md +4 -4
- data/lib/rspec_junit_formatter/rspec3.rb +14 -1
- data.tar.gz.sig +0 -0
- metadata +13 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 892c4451f42f7fdbfe335df86dd6f910d5fc4a54b91614b2da4283490a635646
|
|
4
|
+
data.tar.gz: 870ebdab7dd2e600b57493ce26437cee64b73cdc1cd05b48d6f67ad7160e98e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b55d404b3e056fd85dcef4712c386de35448f442abbc750b8fe9fc5d9953b79bb9552790bff53f88f67a91d7685765d9ddbb9cbefba0317d7cd2c558dabd036
|
|
7
|
+
data.tar.gz: aa4f7f1061266efeb3e4da1756d5a47969c8f1964174dbba23054b580a035a356d8b8880f2da47b940f423a5f2fb35371eed52990ab2540f133f49708bbe2bf5
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
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://
|
|
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://
|
|
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://
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
12
|
+
MIIDKDCCAhCgAwIBAgIBBTANBgkqhkiG9w0BAQsFADA6MQ0wCwYDVQQDDARzajI2
|
|
14
13
|
MRQwEgYKCZImiZPyLGQBGRYEc2oyNjETMBEGCgmSJomT8ixkARkWA2NvbTAeFw0y
|
|
15
|
-
|
|
14
|
+
NjEwMjAyMzA3MDhaFw0yNzEwMjAyMzA3MDhaMDoxDTALBgNVBAMMBHNqMjYxFDAS
|
|
16
15
|
BgoJkiaJk/IsZAEZFgRzajI2MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkq
|
|
17
16
|
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsr60Eo/ttCk8GMTMFiPr3GoYMIMFvLak
|
|
18
17
|
xSmTk9YGCB6UiEePB4THSSA5w6IPyeaCF/nWkDp3/BAam0eZMWG1IzYQ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-
date:
|
|
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.
|
|
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
|