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') {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue