1
0
Fork 0

added default for total

This commit is contained in:
Frank Celler 2016-02-11 09:43:43 +01:00
parent ab31d3f862
commit c63ec596cb
1 changed files with 7 additions and 1 deletions

View File

@ -86,6 +86,12 @@ function resultsToXml(results, baseName, cluster) {
}
let xml = buildXml();
let total = 0;
if (current.hasOwnProperty('total')) {
total = current.total;
}
let failuresFound = 0;
if (current.hasOwnProperty('failed')) {
@ -95,8 +101,8 @@ function resultsToXml(results, baseName, cluster) {
xml.elem("testsuite", {
errors: 0,
failures: failuresFound,
tests: total,
name: clprefix + runName,
tests: current.total,
time: current.duration
});