Repository navigation
testing: implement initial UI for per-test coverage - #212403
Merged
Merged
Conversation
- There's now a toolbar on top of the file with test info for that file. This was inspired by some coverage extension I saw at one point: previously this was only shown in the explorer/test coverage view versus being contextual in the file - I really like the concept and utility of the toolbar, but it could certainly use a bit of polish. Maybe have it be sticky like breadcrumbs and styled more after notebooks' - I relocated the "toggle inline coverage" action from being the annoying popup on the line numbers into the toolbar - When per-test coverage is available, that's shown in the toolbar as well. Clicking on it allows you to filter to see only coverage generated by that test case. Per-test coverage filtering is global, and also applies in the Test Coverage view. - There's a pseudo-select box for filtering in the Test Coverage view (native select boxes are painful with a large number of items) - I think it's useful to show the code run by a test in the coverage view, but the numbers per-file are a little bogus, at least for the selfhost test provider, since I only show #'s for functions run by that test. Maybe we just don't show percentages in this mode. https://memes.peet.io/img/24-05-1941df72-bd93-42f9-9363-32fc3ea69e7d.mp4
Justin Chen (justschen)
approved these changes
May 10, 2024
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Note: this builds on #212325 which has been approved; only contents of the last commit need review.
This was inspired by some coverage extension I saw at one point:
previously this was only shown in the explorer/test coverage view
versus being contextual in the file
certainly use a bit of polish. Maybe have it be sticky like
breadcrumbs and styled more after notebooks'
popup on the line numbers into the toolbar
well. Clicking on it allows you to filter to see only coverage
generated by that test case. Per-test coverage filtering is global,
and also applies in the Test Coverage view.
- There's a pseudo-select box for filtering in the Test Coverage view
(native select boxes are painful with a large number of items)
- I think it's useful to show the code run by a test in the coverage
view, but the numbers per-file are a little bogus, at least for the
selfhost test provider, since I only show #'s for functions run by
that test. Maybe we just don't show percentages in this mode.
https://memes.peet.io/img/24-05-1941df72-bd93-42f9-9363-32fc3ea69e7d.mp4
Refs #212196