Skip to content

Support running (Python) test classes as a whole #25592

Closed

Description

Request

When running test classes, there does not seem to be a "Run" button next to the test class name to run all tests in that test class. I loved this feature in other IDEs such as IntelliJ IDEA, as it saved me a lot of time.

As such, it would be great if test classes could also get this button.

Example

Image

Workaround

Note that there is an option in the "Testing" pane but it requires more clicks and requires you to find the tests you need, which is more work in a large codebase.
Image

Activity

  1. eleanorjboyd commented on Nov 14, 2025

    @eleanorjboyd
    Member

    from my understanding the VS Code Test Explorer UI only shows the green "run" arrows for leaf test items (tests without children). Therefore I think this is an API request for core.

  2. vs-code-engineering commented on Nov 14, 2025

    @vs-code-engineering

    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!

  3. connor4312 commented on Nov 14, 2025

    @connor4312
    Member

    The green arrow is shown on all nodes with runnable children. Probably you're not putting a location on the TestClass.

  4. eleanorjboyd commented on Nov 14, 2025

    @eleanorjboyd
    Member

    placeholder

  5. mikeweltevrede commented on Nov 15, 2025

    @mikeweltevrede
    Author

    Connor Peet (@connor4312) what do you mean with "you're not putting a location on the TestClass"? And how can I do this? Or was this a comment for Eleanor?

  6. eleanorjboyd commented on Dec 9, 2025

    @eleanorjboyd
    Member

    Thats for me - will need to finish up this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions