You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support running (Python) test classes as a whole #25592
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
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.
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.
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.
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?
Activity
eleanorjboyd commentedon Nov 14, 2025
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.
vs-code-engineering commentedon Nov 14, 2025
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!
connor4312 commentedon Nov 14, 2025
The green arrow is shown on all nodes with runnable children. Probably you're not putting a location on the TestClass.
eleanorjboyd commentedon Nov 14, 2025
placeholder
mikeweltevrede commentedon Nov 15, 2025
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?
Add line number support for class nodes in pytest and unittest (#25593)
eleanorjboyd commentedon Dec 9, 2025
Thats for me - will need to finish up this PR