fix: improve test coverage filter quickpick readability#306562
Merged
connor4312 merged 2 commits intomicrosoft:mainfrom Apr 3, 2026
Merged
fix: improve test coverage filter quickpick readability#306562connor4312 merged 2 commits intomicrosoft:mainfrom
connor4312 merged 2 commits intomicrosoft:mainfrom
Conversation
Show the test name as the primary label and the ancestor path as the description in the coverage filter quickpick, matching the file picker convention. Also rename 'All tests' to 'Entire run' to clarify that the unfiltered view includes code executed during global initialization, not just test functions. Closes microsoft#229920 Closes microsoft#235347
roblourens
previously approved these changes
Mar 31, 2026
Yoyokrazy
previously approved these changes
Mar 31, 2026
Member
|
@yogeshwaran-c there is a compile error you can use the |
Fixes hygiene check failure by replacing the literal › character with its \u203A escape sequence. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
auto-merge was automatically disabled
April 3, 2026 06:50
Head branch was pushed to by a user without write access
085f2a8
Contributor
Author
|
Fixed the hygiene check — replaced the literal |
connor4312
approved these changes
Apr 3, 2026
TylerLeonhardt
approved these changes
Apr 3, 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.
What kind of change does this PR introduce?
Polish / Bug fix
What is the current behavior?
The test coverage filter quickpick (used to filter coverage to a specific test) displays test items with the full ancestry chain as a flat string in the label field:
This makes it hard to scan when there are many tests with long ancestry paths. Additionally, the "All tests" option is confusing because it includes code executed during global initialization (e.g. comments, setup code), not just test functions.
Closes #229920
Closes #235347
What is the new behavior?
Test name first, ancestry as description: The quickpick now shows the test name as the primary
labeland the ancestor chain as thedescription, matching the convention used by the file picker:This makes it much easier to scan for specific tests.
Rename "All tests" to "Entire run": As suggested by @connor4312 in Confusion on 'Filter Coverage To Test' #235347, this clarifies that the unfiltered view includes all code executed during the run (including global initialization), not just test function bodies.
Additional context
Both changes apply to the two places where the coverage filter quickpick is shown:
FilterCoverageToTestInEditor(editor title bar filter)TestCoverageChangePerTestFilterAction(coverage view toolbar filter)The
getLabelForItemfunction now returns{ label, description? }instead of a flat string, and callers spread the result into quickpick items.