Skip to content

Commit 4cbc1a3

Browse files
committed
Merge branch 'develop'
2 parents d1cff5d + cbe3328 commit 4cbc1a3

File tree

4 files changed

+10
-21
lines changed

4 files changed

+10
-21
lines changed

ml-unit-test-client/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mlHost=localhost
44
mlUsername=admin
55
mlPassword=admin
66
mlRestPort=8090
7-
mlContentForestsPerHost=1
87

98
# Load both the ml-unit-test framework code and some test modules
109
mlModulePaths=../ml-unit-test-modules/src/main/ml-modules,src/test/ml-modules

ml-unit-test-client/src/test/ml-config/databases/content-database.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

ml-unit-test-client/src/test/ml-config/rest-api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"modules-database" : "%%MODULES_DATABASE%%",
77
"port" : %%PORT%%,
88
"xdbc-enabled" : true,
9-
"error-format" : "json"
9+
"error-format" : "json",
10+
"forests-per-host" : 1
1011
}
1112
}

ml-unit-test-modules/src/main/ml-modules/root/test/test-controller.xqy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ declare function run(
230230
};
231231

232232

233-
declare function format($result as element(), $format as xs:string, $suite as xs:string)
233+
declare function format($result as element(), $format as xs:string, $suite-name as xs:string)
234234
{
235235
if ($format eq "junit") then
236-
format-junit($suite)
236+
format-junit($result)
237237
else
238238
let $format-uris :=
239239
if ($db-id = 0) then
@@ -256,17 +256,17 @@ declare function format($result as element(), $format as xs:string, $suite as xs
256256
};
257257

258258

259-
declare function format-junit($suite as element())
259+
declare function format-junit($result as element())
260260
{
261261
element testsuite {
262262
attribute errors {"0"},
263-
attribute failures {fn:data($suite/@failed)},
263+
attribute failures {fn:data($result/@failed)},
264264
attribute hostname {fn:tokenize(xdmp:get-request-header("Host"), ":")[1]},
265-
attribute name {fn:data($suite/@name)},
266-
attribute tests {fn:data($suite/@total)},
267-
attribute time {fn:data($suite/@time)},
265+
attribute name {fn:data($result/@name)},
266+
attribute tests {fn:data($result/@total)},
267+
attribute time {fn:data($result/@time)},
268268
attribute timestamp {""},
269-
for $test in $suite/t:test
269+
for $test in $result/t:test
270270
return
271271
element testcase {
272272
attribute classname {fn:data($test/@name)},

0 commit comments

Comments
 (0)