-
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
"Test result not found" if cwd is a subdirectory in the workspace #18030
Comments
@adri0 Here are the changes I made to get this working see if it works for you: Remove the This is my
I did some minor tweaks to the |
Let me know if the above changes work for you. |
The problem does go away when I change the folder structure for the one proposed. The issue with it is that in some real life projects it's not an option for me to have the tests folder directly under the root directory, as the Python code is a component of a bigger project. Thus I thought, why not change the |
Thanks about the |
I made an edit in the first comment. The actual folder structure should be |
I am also seeing issues with this. We have a very nested directory structure since we are deploying aws lambdas and each lambda has its own test folder
setting throws the same type of error. Here is a minimal example showing this error: Folder structure
contents of test_example.py
contents of settings.json
|
I can also confirm the same. We have tests in a subdirectory of the workspace with code directly in root. |
I'm having this same (or similar) issue, though my tests are not in a subdirectory. Clicking on Here's the twist, though: Clicking on Subsequent to that, clicking on In addition, running the individual tests by clicking on their respective My directory looks like this: VS Code version |
Hello! We have just finished our testing rewrite and are beginning the roll out to users. If you are able, it would be very helpful to know if your issue still exists on the rewrite! To try it yourself, add this setting to your users You can confirm you have the rewrite enabled by setting Let me know if the rewrite fixes your issue. Thanks! |
closing as there has been no activity on this issue in a month, please comment to reopen. Thanks |
Hi @eleanorjboyd -- this, followed by a window reload just fixed the issue that seems more or less the same as the author or this ticket. Thank you! |
Hello @Rafq77, sorry for the delay as I was on vacation. Could you open up a separate issue for the bug you are seeing? It is very interesting but seems less related to the current thread and a new thread would allow me to analyze it further. Thanks! |
VS Code version
1.62.2
Extension version
v2021.11.1422169775
OS type
macOS
OS version
10.15.7
Python distribution
python.org
Python version
Python 3.9.5
Language server
None or Disabled
Expected behaviour
Test results should show after running tests using Testing sidebar.
Actual behaviour
Exception raised after test finished running:
Steps to reproduce
Structure of the repository that reproduces the issue:
I included in the repository the
settings.json
used. That shows:I noticed that if I change the
cwd
to${workspaceFolder}
and move thetests
folder to the repository root, it works.Logs
Code of Conduct
The text was updated successfully, but these errors were encountered: