cucumber_junit_to_json 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: d746c679bc79ff0111383cdd2b98f7e9604d3a7b
4
- data.tar.gz: 5ad7afadf84f14f443dea09ac88c9390ff5cdaa3
3
+ metadata.gz: 18d4d257e6c51b31baf48db05f674059434061e0
4
+ data.tar.gz: d7c7aae775d4c25e8f5e52a233b3e01f4e7e62dd
5
5
  SHA512:
6
- metadata.gz: 93f1ad858d4cafc5b703663494d50abea5fb0c67eecf39ad782f98b1a051a833a5526d82063dccae249a9685b9347bc342369164c67cbbd08603c1d3c991a02a
7
- data.tar.gz: ebbb268eb057a4d6602438c227fda10ad37ae0231594e4d60e6dbbef939d9c4e62093a89af140bf49f1ec8ea1407cb5893daeb8324f0a6ee966e0ae598d90a0d
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
- failure_info = failure.text.split(failure.attribute('message')).first
89
- failure_message = failure.attribute('message')
90
- failing_step = failure_info.split('Failing step:').last.split('...').first.strip
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Cucumber Junit to Json version module
4
4
  module CucumberJunitToJson
5
- VERSION = '0.1.7'
5
+ VERSION = '0.1.8'
6
6
  end
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.7
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-05 00:00:00.000000000 Z
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler