Improve first-time testing (& coverage) experience #24766
Labels
area-testing
bug
Issue identified by VS Code Team member as probable bug
info-needed
Issue requires more information from poster
triage-needed
Needs assignment to the proper sub-team
I asked an LLM to give me an example Python unit test suite. I got this:
I created these two files. I installed the Python extension. The Testing view appeared. But now the troubles start:
🐛 The editor is unable to detect that I use
unittest
, so it asks me to configure stuff. The configuration is weird since it asks me for the root of the tests and for the right test glob to use (why aren't we just picking good defaults here, instead of forcing the user to make a decision?):🐛 After configuring the tests I am immediately greeted with an error. The error is also weirdly shown as a list row (cc @connor4312).
🐛 After reloading I can now run the tests. I then run
Run Tests with Coverage
and immediately the next error comes up. Should the extension automatically take care of installing this for me?The text was updated successfully, but these errors were encountered: