soda 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/Soda.rb +1 -1
- data/lib/SodaCSV.rb +7 -1
- data/lib/SodaReporter.rb +2 -0
- data/lib/SodaSuiteSummary.rb +5 -3
- data/lib/sodainfo.rb +1 -1
- metadata +4 -4
data/lib/Soda.rb
CHANGED
@@ -1075,7 +1075,7 @@ class Soda
|
|
1075
1075
|
tmp_org_str = tmp_org_str.gsub("\n", '\n')
|
1076
1076
|
tmp_str = "#{str}"
|
1077
1077
|
tmp_str = tmp_str.gsub("\n", '\n')
|
1078
|
-
PrintDebug("Replacing string '#{tmp_org_str}' with '#{tmp_str}'
|
1078
|
+
PrintDebug("Replacing string '#{tmp_org_str}' with '#{tmp_str}'")
|
1079
1079
|
end
|
1080
1080
|
|
1081
1081
|
return str
|
data/lib/SodaCSV.rb
CHANGED
@@ -72,7 +72,13 @@ class SodaCSV
|
|
72
72
|
if (!data[k].to_s.empty?)
|
73
73
|
all_nil = false
|
74
74
|
end
|
75
|
-
|
75
|
+
|
76
|
+
if (data[k] != nil)
|
77
|
+
data[k] = data[k].gsub('\n', "\n")
|
78
|
+
else
|
79
|
+
data[k] = ""
|
80
|
+
end
|
81
|
+
|
76
82
|
record[@fieldMap[k]] = data[k]
|
77
83
|
end
|
78
84
|
else
|
data/lib/SodaReporter.rb
CHANGED
@@ -152,6 +152,7 @@ class SodaReporter
|
|
152
152
|
total_time = (stop - start)
|
153
153
|
|
154
154
|
results = {
|
155
|
+
'Test Failure Count' => @failureCount,
|
155
156
|
'Test Assert Count' => @asserts_count,
|
156
157
|
'Test JavaScript Error Count' => @js_error_count,
|
157
158
|
'Test CSS Error Count' => @css_error_count,
|
@@ -197,6 +198,7 @@ class SodaReporter
|
|
197
198
|
@total = 0
|
198
199
|
@start_time = nil
|
199
200
|
@end_time = nil
|
201
|
+
@failureCount = 0
|
200
202
|
end
|
201
203
|
|
202
204
|
###############################################################################
|
data/lib/SodaSuiteSummary.rb
CHANGED
@@ -176,11 +176,13 @@ def GenerateReportData(files)
|
|
176
176
|
|
177
177
|
begin
|
178
178
|
parser = LibXML::XML::Parser.file(f)
|
179
|
+
LibXML::XML::Error.set_handler(&LibXML::XML::Error::QUIET_HANDLER)
|
179
180
|
doc = parser.parse()
|
180
181
|
rescue Exception => e
|
181
182
|
print "(!)Error: Failed trying to parse XML file: '#{f}'!\n"
|
182
|
-
print "--)Exception: #{e.message}\n
|
183
|
-
|
183
|
+
print "--)Exception: #{e.message}\n"
|
184
|
+
print "--)Skipping file!\n"
|
185
|
+
next
|
184
186
|
ensure
|
185
187
|
end
|
186
188
|
|
@@ -1092,7 +1094,7 @@ table {
|
|
1092
1094
|
background-color: #8888FF;
|
1093
1095
|
}
|
1094
1096
|
.tr_normal {
|
1095
|
-
background-color: #
|
1097
|
+
background-color: #e5eef3;
|
1096
1098
|
}
|
1097
1099
|
</style>
|
1098
1100
|
<body>
|
data/lib/sodainfo.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 9
|
10
|
+
version: 1.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Trampus Richmond
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-15 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|