Skip to content

Commit

Permalink
fix generation of missing summary fields
Browse files Browse the repository at this point in the history
  • Loading branch information
amalfra committed Oct 31, 2021
1 parent e8bec5f commit 463e988
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ parseString.parseString(xmlStr, (err, result) => {
}
if (!result.testsuites.$) {
result.testsuites.$ = lib.findSummaryFromTestsuites(result.testsuites.testsuite);
} else {
result.testsuites.$ = {
...result.testsuites.$,
...lib.findSummaryFromTestsuites(result.testsuites.testsuite),
};
}

console.log(lib.generateSummary(result.testsuites.$));
Expand Down

0 comments on commit 463e988

Please sign in to comment.