diff --git a/dist/index.js b/dist/index.js index f369b5a..8c23d51 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1715,12 +1715,6 @@ function getTestsReport(ts, runIndex, suiteIndex, options) { if (options.listTests === 'failed' && ts.result !== 'failed') { return []; } - // if (ts.result === 'skipped') { - // core.info(`SKIPPED TEST LIST ${ts.name}`) - // } - // if (options.listTests === 'non-skipped' && ts.result === 'skipped') { - // return [] - // } const groups = ts.groups; if (groups.length === 0) { return []; @@ -1738,7 +1732,7 @@ function getTestsReport(ts, runIndex, suiteIndex, options) { } const space = grp.name ? ' ' : ''; for (const tc of grp.tests) { - if (tc.result === 'skipped') { + if (options.listTests === 'non-skipped' && tc.result === 'skipped') { continue; } const result = getResultIcon(tc.result); diff --git a/src/report/get-report.ts b/src/report/get-report.ts index 8fb6102..a782d12 100644 --- a/src/report/get-report.ts +++ b/src/report/get-report.ts @@ -217,12 +217,7 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe if (options.listTests === 'failed' && ts.result !== 'failed') { return [] } - // if (ts.result === 'skipped') { - // core.info(`SKIPPED TEST LIST ${ts.name}`) - // } - // if (options.listTests === 'non-skipped' && ts.result === 'skipped') { - // return [] - // } + const groups = ts.groups if (groups.length === 0) { return [] @@ -243,7 +238,7 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe } const space = grp.name ? ' ' : '' for (const tc of grp.tests) { - if (tc.result === 'skipped') { + if (options.listTests === 'non-skipped' && tc.result === 'skipped') { continue } const result = getResultIcon(tc.result)