Skip to content

Commit

Permalink
[@kbn/test] the jUnit Reporter being used for SIEM Cypress tests some…
Browse files Browse the repository at this point in the history
…times doesn't include testcases in XML
  • Loading branch information
spalger committed Feb 10, 2020
1 parent 46871e1 commit 0d14ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kbn-test/src/failed_tests_reporter/test_report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface TestSuite {
/* number of skipped tests as a string */
skipped: string;
};
testcase: TestCase[];
testcase?: TestCase[];
}

export interface TestCase {
Expand Down Expand Up @@ -89,7 +89,7 @@ export function* makeTestCaseIter(report: TestReport) {
const testSuites = 'testsuites' in report ? report.testsuites.testsuite : [report.testsuite];

for (const testSuite of testSuites) {
for (const testCase of testSuite.testcase) {
for (const testCase of testSuite.testcase || []) {
yield testCase;
}
}
Expand Down

0 comments on commit 0d14ad6

Please sign in to comment.