cucumber_junit_to_json 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cucumber_junit_to_json/app.rb +5 -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: 18d4d257e6c51b31baf48db05f674059434061e0
|
4
|
+
data.tar.gz: d7c7aae775d4c25e8f5e52a233b3e01f4e7e62dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e8d0b06be094ad609f8088da431ae5d2bf4ec9b04c921fea39640d7b8f23c37f1dc7464c7c8819613e8f4d60a87d70dc45a4d6808b3c04c1cc5b7fa15f8a15
|
7
|
+
data.tar.gz: 5f52fab3e29955a5ded264ebe0f8c9bf0a7df6b7beffac69658eb6cf66be4e1093bf695b04ba5ea68da835dea33e04adf1791a74bf05a887554320c3ee06c2e4
|
@@ -85,9 +85,11 @@ module CucumberJunitToJson
|
|
85
85
|
failure = testcase.css('failure')
|
86
86
|
# Sometimes <failure> node come as <error>
|
87
87
|
failure ||= testcase.css('error')
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
if failure
|
89
|
+
failure_info = failure.text.split(failure.attribute('message')).first
|
90
|
+
failure_message = failure.attribute('message')
|
91
|
+
failing_step = failure_info.split('Failing step:').last.split('...').first.strip
|
92
|
+
end
|
91
93
|
end
|
92
94
|
# Removing scenario outline added blob gives you the actual scenario name
|
93
95
|
scenario.name = testcase['name'].split('-- @').first.strip
|
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.1.
|
4
|
+
version: 0.1.8
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|