mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Merge pull request #606 from dorny/bugfix/142-list_failed_tests_only
This commit is contained in:
commit
a1ac327414
5 changed files with 190 additions and 1 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
|
@ -2115,6 +2115,9 @@ function getTestsReport(ts, runIndex, suiteIndex, options) {
|
|||
}
|
||||
const space = grp.name ? ' ' : '';
|
||||
for (const tc of grp.tests) {
|
||||
if (options.listTests === 'failed' && tc.result !== 'failed') {
|
||||
continue;
|
||||
}
|
||||
const result = getResultIcon(tc.result);
|
||||
sections.push(`${space}${result} ${tc.name}`);
|
||||
if (tc.error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue