cucumber_junit_to_json 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1784e0b9f645c70c9afa8fff11f2f4dc2e21d8ab
|
4
|
+
data.tar.gz: 697b4d898db1cccae23b96f51339610f6f656005
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c830b1028f775a5ad9a4a71c2af117c4b4aac3b37ea07d2a7001374b1a7a3ed00b989bef982e5394df7723a3203ee429d1a83cb4fbc71ba74cbdd2debb7bbb17
|
7
|
+
data.tar.gz: 8eb5f7138c0a74fb3e01d79332b70e7a8c3a6515f634b7640029ec96390bdceaa9ff0794cfe35fd177593b3ea3d0b78aff515a9c5e1970fdfb2050146fc2383f
|
@@ -11,6 +11,7 @@ module CucumberJunitToJson
|
|
11
11
|
module Models
|
12
12
|
# Abstract representation of a cucumber step attribute
|
13
13
|
class Step
|
14
|
+
Error = Class.new(RuntimeError)
|
14
15
|
attr_accessor :keyword, :name, :match, :table, :rows, :result, :line
|
15
16
|
def initialize
|
16
17
|
@table = CucumberJunitToJson::Models::Table.new
|
@@ -94,7 +95,7 @@ module CucumberJunitToJson
|
|
94
95
|
if line =~ /<\S+>/
|
95
96
|
# A match percentage greater than 76 is an indication
|
96
97
|
# of a good match for steps
|
97
|
-
return line, count if line.similar(step) >=
|
98
|
+
return line, count if line.similar(step) >= 67
|
98
99
|
elsif line =~ /#{step}/
|
99
100
|
return line, count
|
100
101
|
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.
|
4
|
+
version: 0.1.6
|
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-
|
11
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|