mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
Log filename if parsing fails
This commit is contained in:
10
src/main.ts
10
src/main.ts
@@ -147,10 +147,16 @@ class TestReporter {
|
||||
return []
|
||||
}
|
||||
|
||||
core.info(`Processing test results for check run ${name}`)
|
||||
const results: TestRunResult[] = []
|
||||
for (const {file, content} of files) {
|
||||
const tr = await parser.parse(file, content)
|
||||
results.push(tr)
|
||||
try {
|
||||
const tr = await parser.parse(file, content)
|
||||
results.push(tr)
|
||||
} catch (error) {
|
||||
core.error(`Processing test results from ${file} failed`)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
core.info(`Creating check run ${name}`)
|
||||
|
||||
Reference in New Issue
Block a user