-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test UI] Feature Request: Different Organization Options #126938
Comments
I think @matepek also requested test tags. Is a generic |
I don't consider myself smart enough to propose the ideal API implementation, but what I know needs to work:
|
For this I've experimented with converting the test filter for a more Marketplace-like box with @ tags and autocomplete. I also moved the current directives to "show tests in current document" for instance to be @ -directives since I didn't want to mix text and non-text search. Likewise I wanted tags to be text-based because the alternative experience would be click on filter -> click on tags -> quickpick for tags you want, which is pretty deep. History is still supported: https://memes.peet.io/img/21-08-f9d0cc7b-42c5-4fcc-a4b4-e1eb201ed7d3.mp4 |
@jdneo I saw that you have an intended use for these too -- does the UI I showed in the video work for you, any suggestions? 🙂 |
Thank you @connor4312 ! The video looks promising. There is another scenario came up in my mind: In a lazy-load test explorer with some children haven't been resolved yet. Will users want to search all the items related to a tag? I'm not sure if this will be a request from users in the future though. |
Yea, when dealing with tags it only filters to tags and items that we know about. We could trigger a global expansion of every node but that could result in a performance cost. Thoughts? |
@connor4312 sounds like something that should be a configurable option :). "Search undiscovered Tests" or something like that, should default to false. In addition, maybe when searching have an additional dummy entry or some sort of clickable link that says "more..." or "search all test files" or something so that you can have both. |
Yea we could have some additional text at the end of the tree saying something like "There may be more undiscovered tests matching this filter, would you like to [discover all tests]?" |
Sounds good to me! |
Verification:
|
@connor4312 I don't see tags in the latest sample or in the latest proposed/stable API as far as I can tell. Is it present on testItem or am I missing something? |
It's in the latest proposed API right now. It should be stable at the end of this iteration. |
@connor4312 I had removed useproposedAPIs so I just noticed my vscode.proposed.d.ts wasn't actually updating, my bad! |
@connor4312
Related to: #126932
There may be different ways a user wants to view their tests, such as sorted by tag/function or sorted by unit/integration/acceptance/etc. These views may require that a test be put in multiple locations in a tree, since a test may have one or more tags for instance.
This seems it would require either:
And also allow this dropdown to be hooked into to provide custom test trees (e.g. "Group by Tag", "Group by Function", "Group by Type". If there are multiple test providers where their root objects are shown, maybe put the "group by" as a dropdown at that level instead
Ideally the extension can register and supply whatever additional trees it wants, maybe via a new root object but would need to reference all the unique IDs already present in the main root, or otherwise some sort of "view" class
This goes into the "nice to have" and "vNext" category, it's not a must for initial release.
The text was updated successfully, but these errors were encountered: