Add createCheck to display test results in GitHub UI
parent
e44a1415d2
commit
868493af70
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@ import { RunMeta, TestMeta } from './ts/meta.ts';
|
||||||
class ReportConverter {
|
class ReportConverter {
|
||||||
static convertReport(filename, report) {
|
static convertReport(filename, report) {
|
||||||
core.info(`Start analyzing report: ${filename}`);
|
core.info(`Start analyzing report: ${filename}`);
|
||||||
core.debug(JSON.stringify(report));
|
core.info(JSON.stringify(report));
|
||||||
const run = report['test-run'];
|
const run = report['test-run'];
|
||||||
const meta = new RunMeta(filename);
|
const meta = new RunMeta(filename);
|
||||||
|
|
||||||
|
|
@ -14,6 +14,7 @@ class ReportConverter {
|
||||||
meta.passed = Number(run._attributes.passed);
|
meta.passed = Number(run._attributes.passed);
|
||||||
meta.duration = Number(run._attributes.duration);
|
meta.duration = Number(run._attributes.duration);
|
||||||
|
|
||||||
|
core.info(`test-suite length ${run['test-suite'].length} and value ${run['test-suite']}`);
|
||||||
meta.addTests(ReportConverter.convertSuite(run['test-suite']));
|
meta.addTests(ReportConverter.convertSuite(run['test-suite']));
|
||||||
core.info(`meta length ${meta.suites.length}`);
|
core.info(`meta length ${meta.suites.length}`);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue