clean up logic

This commit is contained in:
Connor Vidlock 2024-01-29 17:15:30 -06:00
parent 1a4bb27f01
commit 2ae30facd4
No known key found for this signature in database
GPG key ID: BADEF4A267C14600
2 changed files with 3 additions and 14 deletions

8
dist/index.js generated vendored
View file

@ -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);

View file

@ -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)