diff --git a/src/dev/failed_tests/report.js b/src/dev/failed_tests/report.js index 8d3e6080d54e12..9a9c7acdfd270d 100644 --- a/src/dev/failed_tests/report.js +++ b/src/dev/failed_tests/report.js @@ -42,7 +42,10 @@ const mapXml = es.map((file, cb) => { * Filters all testsuites to find failed testcases */ const filterFailures = es.map((testSuite, cb) => { - const testFiles = testSuite.testsuites.testsuite; + // Grab the failures. Reporters may report multiple testsuites in a single file. + const testFiles = testSuite.testsuites + ? testSuite.testsuites.testsuite + : [testSuite.testsuite]; const failures = testFiles.reduce((failures, testFile) => { for (const testCase of testFile.testcase) {