mirror of https://gitee.com/bigwinds/arangodb
added default for total
This commit is contained in:
parent
ab31d3f862
commit
c63ec596cb
|
@ -86,6 +86,12 @@ function resultsToXml(results, baseName, cluster) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let xml = buildXml();
|
let xml = buildXml();
|
||||||
|
let total = 0;
|
||||||
|
|
||||||
|
if (current.hasOwnProperty('total')) {
|
||||||
|
total = current.total;
|
||||||
|
}
|
||||||
|
|
||||||
let failuresFound = 0;
|
let failuresFound = 0;
|
||||||
|
|
||||||
if (current.hasOwnProperty('failed')) {
|
if (current.hasOwnProperty('failed')) {
|
||||||
|
@ -95,8 +101,8 @@ function resultsToXml(results, baseName, cluster) {
|
||||||
xml.elem("testsuite", {
|
xml.elem("testsuite", {
|
||||||
errors: 0,
|
errors: 0,
|
||||||
failures: failuresFound,
|
failures: failuresFound,
|
||||||
|
tests: total,
|
||||||
name: clprefix + runName,
|
name: clprefix + runName,
|
||||||
tests: current.total,
|
|
||||||
time: current.duration
|
time: current.duration
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue