rspec_junit_formatter_bitbucket 0.2.0.pre.181 → 0.2.0.pre.182
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec_junit_formatter_bitbucket/xml.rb +9 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8d02b211c65b7d2680e58d6ffd6c50dc0c28cabfdcc1f26a282818358e73548
|
4
|
+
data.tar.gz: 4b2c4a3348579030e2860d3a8947ec1aa7a2064b274109c0bd0f1eb8a71e12e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12312e81cf57b7ace133e8716a6a586345d708d275d7c22b2487a2b1ed43c7c9e661b3795ad46ded13d5fa735c81efdee19f447ca036773ddbc58a4d90140d8d
|
7
|
+
data.tar.gz: 4f63b527ec95f3a1d996ea3a956a355661c041743e847a101d69cff386c926537f93b831f1c02e771fd4a61eefadfbad8f62f7104cbf7bdbd94c122d7c87d0eb
|
@@ -66,10 +66,7 @@ module RspecJunitFormatterBitbucket
|
|
66
66
|
|
67
67
|
def dump_failed(example)
|
68
68
|
dump_example(example) do
|
69
|
-
@output << %(<failure)
|
70
|
-
@output << %( message="#{Format.escape(@test.failure_message_for(example))}")
|
71
|
-
@output << %( type="#{Format.escape(@test.failure_type_for(example))}")
|
72
|
-
@output << %(>)
|
69
|
+
@output << %(\n<failure #{rm_char_nw_line(failure_attr(example))}>)
|
73
70
|
@output << Format.escape(@test.failure_for(example))
|
74
71
|
@output << %(</failure>)
|
75
72
|
end
|
@@ -91,8 +88,15 @@ module RspecJunitFormatterBitbucket
|
|
91
88
|
TESTCASE
|
92
89
|
end
|
93
90
|
|
91
|
+
def failure_attr(example)
|
92
|
+
<<~FAILURE
|
93
|
+
message="#{Format.escape(@test.failure_message_for(example))}"
|
94
|
+
type="#{Format.escape(@test.failure_type_for(example))}"
|
95
|
+
FAILURE
|
96
|
+
end
|
97
|
+
|
94
98
|
def rm_char_nw_line(txt)
|
95
|
-
txt.gsub("\n", ' ').gsub("\r", '')
|
99
|
+
txt.gsub("\n", ' ').gsub("\r", '').chomp(' ')
|
96
100
|
end
|
97
101
|
|
98
102
|
def dump_output(example)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_junit_formatter_bitbucket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.pre.
|
4
|
+
version: 0.2.0.pre.182
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|