-
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 execution randomly ends prematurely #17282
Comments
@pewscorner Are you using |
@karthiknadig I'm using unittest. |
I am also experiencing this after updating to 1.60.0 |
Using |
I'm using untitest and have the same issue. I have over 300 unit tests in my project. I haven't had it finish all 300+ test in a single pass one time since the update. |
One more small thing, I know this probably isn't the place for it, but I do really really like the look of the new test interface. Thanks for all your hard work!!! |
@mrucker Thanks for the feedback. Can you try this build and see if it improves the situation? https://github.com/microsoft/vscode-python/suites/3707450658/artifacts/90551474 |
@karthiknadig This build is better but still wasn't 100% for me. I reran my entire test suite a few times and it completed all the tests once. The other five or so times it missed a handful of random tests (like 4/350 tests). Here's a screenshot to give you an idea. |
I'm also seeing an improvement but not a 100% fix with the new Python extension v2021.9.1218897484. Out of 10 runs, my 64-test suite ran to completion 8 times, and skipped 1 test 2 times (not the same test). @karthiknadig, shouldn't this be reopened? |
Environment data
python.languageServer
setting: PylanceExpected behaviour
When clicking on the "Run Tests" button, all discovered tests should run.
Actual behaviour
A random number of tests are run (sometimes all of them). There is nothing in the UI indicating why the testing stopped (but there's an error in the Python output log, see below). This behavior started after upgrading VS Code to 1.60.0.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
I simply run my 64-test test suite.
Logs
Test output terminal:
Python output
The text was updated successfully, but these errors were encountered: