mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
clean up logic
This commit is contained in:
parent
1a4bb27f01
commit
2ae30facd4
2 changed files with 3 additions and 14 deletions
8
dist/index.js
generated
vendored
8
dist/index.js
generated
vendored
|
|
@ -1715,12 +1715,6 @@ function getTestsReport(ts, runIndex, suiteIndex, options) {
|
||||||
if (options.listTests === 'failed' && ts.result !== 'failed') {
|
if (options.listTests === 'failed' && ts.result !== 'failed') {
|
||||||
return [];
|
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;
|
const groups = ts.groups;
|
||||||
if (groups.length === 0) {
|
if (groups.length === 0) {
|
||||||
return [];
|
return [];
|
||||||
|
|
@ -1738,7 +1732,7 @@ function getTestsReport(ts, runIndex, suiteIndex, options) {
|
||||||
}
|
}
|
||||||
const space = grp.name ? ' ' : '';
|
const space = grp.name ? ' ' : '';
|
||||||
for (const tc of grp.tests) {
|
for (const tc of grp.tests) {
|
||||||
if (tc.result === 'skipped') {
|
if (options.listTests === 'non-skipped' && tc.result === 'skipped') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const result = getResultIcon(tc.result);
|
const result = getResultIcon(tc.result);
|
||||||
|
|
|
||||||
|
|
@ -217,12 +217,7 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe
|
||||||
if (options.listTests === 'failed' && ts.result !== 'failed') {
|
if (options.listTests === 'failed' && ts.result !== 'failed') {
|
||||||
return []
|
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
|
const groups = ts.groups
|
||||||
if (groups.length === 0) {
|
if (groups.length === 0) {
|
||||||
return []
|
return []
|
||||||
|
|
@ -243,7 +238,7 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe
|
||||||
}
|
}
|
||||||
const space = grp.name ? ' ' : ''
|
const space = grp.name ? ' ' : ''
|
||||||
for (const tc of grp.tests) {
|
for (const tc of grp.tests) {
|
||||||
if (tc.result === 'skipped') {
|
if (options.listTests === 'non-skipped' && tc.result === 'skipped') {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const result = getResultIcon(tc.result)
|
const result = getResultIcon(tc.result)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue