-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting "pytest test discovery error for workspace" when having multiple projects in workspace #23828
Comments
Can you include more logs and either an example smaller project or the structure of your project where you are experiencing this issue with. Thanks |
Sure. To reproduce what I have below:
What logs do you want? Python Test Log provided below. I would not be surprised if there is an issue with environments (which I filed an issue for as well) due to the error message
|
Hey @eleanorjboyd, this issue might need further attention. @jimisola, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
@eleanorjboyd Would be nice if you can reopen this and advise me if the supplied information is enough. |
yes this should not have been closed- I will review sorry! |
I typically have several projects open in VS Code, i.e. in the current workspace. They can be Python (hatch), Java (Maven), GitLab CI/CD Components etc. VS Code Python sometimes have issues with pytest discovery in non-Python projects which results in me not being able to use Test Explorer to run/debug tests.
A typical error message looks like this:
2024-07-17 14:18:20.859 [error] pytest test discovery error for workspace: /home/u30576/dev/clones/sysdev/devops/cicd-components/python
The text was updated successfully, but these errors were encountered: