Skip to content

feat(reporter): add testLists option to md reporter#987

Merged
fi3ework merged 2 commits intomainfrom
feat/md-reporter-test-lists
Feb 27, 2026
Merged

feat(reporter): add testLists option to md reporter#987
fi3ework merged 2 commits intomainfrom
feat/md-reporter-test-lists

Conversation

@fi3ework
Copy link
Copy Markdown
Member

Summary

Add a new testLists option to MdReporterOptions that controls when the ## Tests section (Passed / Skipped / Todo lists) is displayed in the markdown report.

Motivation

Currently the md reporter only shows the passed/skipped test lists when all tests pass and the run is focused. There are cases where users want to see which tests passed/skipped even when some tests fail.

Changes

  • Added testLists?: 'auto' | 'always' to MdReporterOptions
  • 'auto' (default): existing conditional behavior — no breaking change
  • 'always': always render the ## Tests section regardless of test status or focused run detection

Usage

reporters: [['md', { testLists: 'always' }]]

Add a new `testLists` option to `MdReporterOptions` that controls when
the `## Tests` section (Passed / Skipped / Todo lists) is displayed.

- `'auto'` (default): show only when all tests pass and the run is focused
  (existing behavior, no breaking change)
- `'always'`: always show the test lists regardless of test status or focus

Usage:
```ts
reporters: [['md', { testLists: 'always' }]]
```

Amp-Thread-ID: https://ampcode.com/threads/T-019c99e1-ac89-74b0-a3be-ce819ce5b7e6
Co-authored-by: Amp <amp@ampcode.com>
@fi3ework fi3ework enabled auto-merge (squash) February 26, 2026 12:45
@fi3ework fi3ework disabled auto-merge February 26, 2026 12:45
@fi3ework fi3ework merged commit 4f4f849 into main Feb 27, 2026
9 checks passed
@fi3ework fi3ework deleted the feat/md-reporter-test-lists branch February 27, 2026 05:45
@fi3ework fi3ework mentioned this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants