cucumber_junit_to_json 0.1.6 → 0.1.7

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: 1784e0b9f645c70c9afa8fff11f2f4dc2e21d8ab
4
- data.tar.gz: 697b4d898db1cccae23b96f51339610f6f656005
3
+ metadata.gz: d746c679bc79ff0111383cdd2b98f7e9604d3a7b
4
+ data.tar.gz: 5ad7afadf84f14f443dea09ac88c9390ff5cdaa3
5
5
  SHA512:
6
- metadata.gz: c830b1028f775a5ad9a4a71c2af117c4b4aac3b37ea07d2a7001374b1a7a3ed00b989bef982e5394df7723a3203ee429d1a83cb4fbc71ba74cbdd2debb7bbb17
7
- data.tar.gz: 8eb5f7138c0a74fb3e01d79332b70e7a8c3a6515f634b7640029ec96390bdceaa9ff0794cfe35fd177593b3ea3d0b78aff515a9c5e1970fdfb2050146fc2383f
6
+ metadata.gz: 93f1ad858d4cafc5b703663494d50abea5fb0c67eecf39ad782f98b1a051a833a5526d82063dccae249a9685b9347bc342369164c67cbbd08603c1d3c991a02a
7
+ data.tar.gz: ebbb268eb057a4d6602438c227fda10ad37ae0231594e4d60e6dbbef939d9c4e62093a89af140bf49f1ec8ea1407cb5893daeb8324f0a6ee966e0ae598d90a0d
@@ -83,6 +83,8 @@ module CucumberJunitToJson
83
83
  failure_message = nil
84
84
  if testcase['status'] == 'failed'
85
85
  failure = testcase.css('failure')
86
+ # Sometimes <failure> node come as <error>
87
+ failure ||= testcase.css('error')
86
88
  failure_info = failure.text.split(failure.attribute('message')).first
87
89
  failure_message = failure.attribute('message')
88
90
  failing_step = failure_info.split('Failing step:').last.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.6'
5
+ VERSION = '0.1.7'
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.6
4
+ version: 0.1.7
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-02-22 00:00:00.000000000 Z
11
+ date: 2018-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler