microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.36k stars 29.32k forks source link

[SUGGESTION] Test Explorer is able to be grouped #205915

Open jason-eales-gallagher opened 8 months ago

jason-eales-gallagher commented 8 months ago

Describe the feature you'd like

Im basing the Feature Request from what I see in Visual Studio 2022, where there are many additional option to group your tests into. image

Benefits

  1. Improved Organization: It helps keep your tests neatly organized and easy to locate. This can be particularly useful when dealing with a large number of tests.
  2. Efficient Navigation: Testers can quickly navigate to the specific category they are interested in, saving time that would otherwise be spent scrolling through unrelated tests.
  3. Easier Maintenance: When tests are grouped by category, it’s easier to maintain and update them. If a change is made that affects a specific category of tests, you can quickly locate and update these tests as needed.
  4. Better Understanding: It provides a better understanding of what each test is supposed to validate by grouping related tests together.
  5. Enhanced Collaboration: When multiple testers are adding to the repo, having tests grouped by category can help prevent duplication of effort and make it easier to divide work among team members.

Effective test management is maintaining a balance between granularity and simplicity. Too many categories can make the system confusing and difficult to navigate, while too few can lead to disorganization and inefficiency.

Alternatives considered

No response

Environment Information

image

connor4312 commented 8 months ago

We already support filtering by tag, but not grouping by tag.

vscodenpa commented 8 months ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

jason-eales-gallagher commented 8 months ago

We already support filtering by tag, but not grouping by tag.

I have a C# MSTEST project and have used the [TestCategory()] attribute. In Visual Studio IDE when I group by "Traits" the [TestCategory()] becomes the parent item and the associated tests become the children. image

In Visual Studio Code we can also set the [TestCategory()] but we cannot group by it in the Test Explorer, which means that we are unable to get full benefit from this feature!

vscodenpa commented 8 months ago

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!