-
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
Running all tests in a test class raises an error #2044
Comments
Would it be possible to provide a sample repo that we could use to replicate this issue. |
Yes: https://github.com/abelgoodwin1988/automated-software-testing-with-python Falling asleep for now, ill provide any additional needed info in the morning. |
Please provide the contents of your {
"python.pythonPath": "/Users/donjayamanne/.local/share/virtualenvs/automated-software-testing-with-python-l2Qoc3kW/bin/python",
"python.unitTest.unittestArgs": [
"-v",
"-s",
"./blog",
"-p",
"*_test.py"
],
"python.unitTest.pyTestEnabled": false,
"python.unitTest.nosetestsEnabled": false,
"python.unitTest.unittestEnabled": true
} |
|
from the developers console there is this piece of logging which appears when I get the error message:
|
Thanks for the extra information @abelgoodwin1988, we'll attempt a repro on our end. |
Let me know if there's any additional info I can provide or anything I can do to help. |
@abelgoodwin1988 Is this issue occurring in all workspaces? |
Ran in a python 3.5.4 environment with same workspace settings and the issue still exists. Edit: Went through some iterations and it's behaving the same as before. This evening I'm going to try and reinstall VScode itsself and see if that sorts anything out. |
No joy, reinstalled after clearing cached vscode settings and issue persists. |
I've just reproduced this on two other windows 10 machines. |
@DonJayamanne, I can reproduce this on Linux (Ubuntu 18.04) with the latest insiders build + latest production version of vscode-python extension. I can look into it further and do some debugging... |
@abelgoodwin1988 I believe I found the root cause and corrected it with my change from yesterday. |
Great News, thanks for your work on this! |
Environment data
Actual behavior
gif of issue being produced
Issue occurs at about 40 seconds in.
When attempting to run all tests within a specific test class, no tests are ran and an error is thrown; after the error is thrown, the green check tests passed bar seems to aggregate all past succesful runs of any tests instead of the current run.
In this you'll see that the test methods within the erroring test class will run, yet this is not always the functionality when this occurs, more often than not the same error notification will appear, yet within the console the test will indicate it has ran.
Expected behavior
Successful testing of all methods contained within a test class. Correct test count. No inexplicit error popup.
Steps to reproduce:
I've recreated the folder structure and files with minimal code and had the app_test.py behave similarly.
Logs
The text was updated successfully, but these errors were encountered: