Skip to content

Commit

Permalink
add debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiszaher committed Jan 12, 2024
1 parent 204ecb4 commit 575df8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ async function parseFile(file, isFilenameInStackTrace) {
const data = await fs.promises.readFile(file);

const report = JSON.parse(parser.xml2json(data, { compact: true }));
core.debug(`parsed report: ${JSON.stringify(report)}`)

const testsuites = report.testsuite
? [report.testsuite]
: Array.isArray(report.testsuites.testsuite)
? report.testsuites.testsuite
: [report.testsuites.testsuite];
core.debug(`test suites: ${JSON.stringify(testsuites)}`)

for (const testsuite of testsuites) {
const testcases = Array.isArray(testsuite.testcase)
Expand Down

0 comments on commit 575df8d

Please sign in to comment.