Add createCheck to display test results in GitHub UI
parent
8b433675c5
commit
bbdea0a1e4
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue