mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-05 04:25:23 -08:00
Merge pull request #179 from vasanthdharmaraj/main
Suppress "Processing test results from" log
This commit is contained in:
8
dist/index.js
generated
vendored
8
dist/index.js
generated
vendored
@@ -375,12 +375,18 @@ class TestReporter {
|
|||||||
core.warning(`No file matches path ${this.path}`);
|
core.warning(`No file matches path ${this.path}`);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
core.info(`Processing test results for check run ${name}`);
|
||||||
const results = [];
|
const results = [];
|
||||||
for (const { file, content } of files) {
|
for (const { file, content } of files) {
|
||||||
core.info(`Processing test results from ${file}`);
|
try {
|
||||||
const tr = yield parser.parse(file, content);
|
const tr = yield parser.parse(file, content);
|
||||||
results.push(tr);
|
results.push(tr);
|
||||||
}
|
}
|
||||||
|
catch (error) {
|
||||||
|
core.error(`Processing test results from ${file} failed`);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
core.info(`Creating check run ${name}`);
|
core.info(`Creating check run ${name}`);
|
||||||
const createResp = yield this.octokit.rest.checks.create(Object.assign({ head_sha: this.context.sha, name, status: 'in_progress', output: {
|
const createResp = yield this.octokit.rest.checks.create(Object.assign({ head_sha: this.context.sha, name, status: 'in_progress', output: {
|
||||||
title: name,
|
title: name,
|
||||||
|
|||||||
@@ -147,11 +147,16 @@ class TestReporter {
|
|||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core.info(`Processing test results for check run ${name}`)
|
||||||
const results: TestRunResult[] = []
|
const results: TestRunResult[] = []
|
||||||
for (const {file, content} of files) {
|
for (const {file, content} of files) {
|
||||||
core.info(`Processing test results from ${file}`)
|
try {
|
||||||
const tr = await parser.parse(file, content)
|
const tr = await parser.parse(file, content)
|
||||||
results.push(tr)
|
results.push(tr)
|
||||||
|
} catch (error) {
|
||||||
|
core.error(`Processing test results from ${file} failed`)
|
||||||
|
throw error
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(`Creating check run ${name}`)
|
core.info(`Creating check run ${name}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user