Explore how we can make test discovery more automatic #23228
Labels
area-testing
feature-request
Request for new features or functionality
needs spike
Label for issues that need investigation before they can be worked on.
Based on microsoft/vscode#210152
Right now we require manual configuration for test discovery to be performed, but are there ways we can make it more automatic?
I believe there are currently a few challenges:
1- we don't know which framework the tests should be configured with, and there may be a lot of different configs and arguments that people need to pass so tests can successfully be discovered. If we tried to something automatically without requiring user config, most likely we would show a failure on the test view.
2- pytest needs to be installed in user's environment for it to perform discovery. When people configure their tests to use pytest and it's not installed, we automatically install it on their behalf. We ofc can't do that automatically on load though, so we'd need to figure out a way to handle that part.
3- Some users who are running tests in the terminal are not using the same environment as the one we select for the workspace, which can also cause some confusion if we tried to do discovery automatically, as we'd likely fail due to the wrong environment being selected, even though running tests in the terminal succeeds. It's a problem that already exists, but since we don't open the test view by default nor try to perform discovery automatically, it's less noticeable
In any case, this is likely currently blocked by #21845 and potentially #12075?
The text was updated successfully, but these errors were encountered: