foodcritic-junit 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foodcritic/junit/outputter.rb +8 -8
- data/lib/foodcritic/junit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f3b81709705972df2c617e822ccf45ef8e0eea2
|
4
|
+
data.tar.gz: 05ba866ee057c4bbb4634dff0a65f041db12e4c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 355616baa56b06fae478ed295c5bc67679ae8a315528f48d257831ce61adc500e91c793dfa5a96b661b2eec7b8e81ee3f3a00d3b47c41ecdd02bb4ee32f98ebc
|
7
|
+
data.tar.gz: 969058aa08ed71c60e4f981868ce2441d6f81028d5376dae0369f0ddf72c4790f279bcb14982454231e1f0564e806964aa2eba930e19131be781bab221da44ec
|
@@ -64,9 +64,9 @@ module Foodcritic
|
|
64
64
|
<<-EOS
|
65
65
|
<?xml version="1.0" encoding="UTF-8"?>
|
66
66
|
<testsuites>
|
67
|
-
|
68
|
-
|
69
|
-
|
67
|
+
<testsuite name=#{cookbook_name.encode(xml: :attr)} timestamp=#{Time.now.utc.iso8601.to_s.encode(xml: :attr)}>
|
68
|
+
#{violations_as_xml}
|
69
|
+
</testsuite>
|
70
70
|
</testsuites>
|
71
71
|
EOS
|
72
72
|
end
|
@@ -84,11 +84,11 @@ module Foodcritic
|
|
84
84
|
file_name = violation[:file_name].encode(xml: :attr)
|
85
85
|
location = "Located in #{violation[:file_name]}".encode(xml: :attr)
|
86
86
|
<<-EOS
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
87
|
+
<testcase name=#{name} classname=#{file_name} assertions="0" time="0">
|
88
|
+
<error type=#{name} message=#{location}>
|
89
|
+
#{violation[:lines].encode(xml: :text)}
|
90
|
+
</error>
|
91
|
+
</testcase>
|
92
92
|
EOS
|
93
93
|
end
|
94
94
|
end
|