feat(reporter): add testLists option to md reporter#987
Merged
Conversation
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>
Amp-Thread-ID: https://ampcode.com/threads/T-019c99e1-ac89-74b0-a3be-ce819ce5b7e6 Co-authored-by: Amp <amp@ampcode.com>
Timeless0911
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new
testListsoption toMdReporterOptionsthat controls when the## Testssection (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
testLists?: 'auto' | 'always'toMdReporterOptions'auto'(default): existing conditional behavior — no breaking change'always': always render the## Testssection regardless of test status or focused run detectionUsage