cucumber_junit_to_json 0.2.0 → 0.2.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
- data/lib/cucumber_junit_to_json/app.rb +8 -3
- data/lib/cucumber_junit_to_json/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62603b0593d836150bb712a47d2283992b2c0aec
|
|
4
|
+
data.tar.gz: 8eee5723be7dadf0c7d3e5008b5808a492c52463
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7eb2a028004e3984fd74429a36d4b0030223f60fc6a31bb82613d44eb29c495cab261a164aed536e896fdcaa3179c0ff30d753f6f92b99b83175392e7decee0a
|
|
7
|
+
data.tar.gz: f2def353e1c1aaf15592fc36c6feabcca244d7a8bafc0da40b03feeee15d5dab366713a7ce5d73b9e9db7df09f90652c0edf21e751fc8dbebcaa77d508c68e23
|
|
@@ -86,9 +86,14 @@ module CucumberJunitToJson
|
|
|
86
86
|
# Sometimes <failure> node come as <error>
|
|
87
87
|
failure ||= testcase.css('error')
|
|
88
88
|
if failure && !failure.nil?
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
# Gracefully rescue issues with failure node not being properly formatted
|
|
90
|
+
begin
|
|
91
|
+
failure_info = failure.text.split(failure.attribute('message')).first
|
|
92
|
+
failure_message = failure.attribute('message')
|
|
93
|
+
failing_step = failure_info.split('Failing step:').last.split('...').first.strip
|
|
94
|
+
rescue StandardError => e
|
|
95
|
+
puts "Error with failure node #{failure}\n#{e.message}\n"
|
|
96
|
+
end
|
|
92
97
|
end
|
|
93
98
|
end
|
|
94
99
|
# Removing scenario outline added blob gives you the actual scenario name
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cucumber_junit_to_json
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Voke Ransom Anighoro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|