Add createCheck to display test results in GitHub UI

pull/97/head
David Finol 2021-02-22 19:03:43 -06:00
parent 8b433675c5
commit bbdea0a1e4
3 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,7 @@ class ReportConverter {
if (Array.isArray(suites)) {
const innerResult = [];
suites.forEach(suite => {
innerResult.concat(ReportConverter.convertSuite(suite));
innerResult.push(ReportConverter.convertSuite(suite));
});
core.debug(`innerResult length ${innerResult.length}`);
return innerResult;
@ -56,7 +56,8 @@ class ReportConverter {
const result = [];
tests.forEach(test => {
core.debug(`pushing test ${test._attributes.name}`);
result.concat(ReportConverter.convertTestCase(suite, test));
result.push(ReportConverter.convertTestCase(suite, test));
core.debug(`test ${test._attributes.name} pushed result to length ${result.length}`);
});
return result;
}

View File

@ -30,7 +30,7 @@ class ResultsCheck {
runSummary.skipped += run.skipped;
runSummary.failed += run.failed;
runSummary.duration += run.duration;
core.info(`Run suites length ${run.suites.length}`);
core.debug(`Run suites length ${run.suites.length}`);
run.suites.forEach(suite => {
runSummary.addTests(suite.tests);
});