-
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
Cannot run unittest in parallel anymore #24829
Comments
I have a similar issue since upgrading to 2025.0.0. If i click on "run" for a certain test while some other tests are running they are not added to the current test run and "Test Results" only shows "Finished running tests!". While the first test runs through, the second test does not seem to be started. When reverting to 2024.22.2 I can run tests in parallel again. I also could not figure out if this change is intended or not, or how to restore the old behavior on the new version. |
Yes, same here. |
Hi! Intended behavior is being able to run them in parallel. Can you set your log levels to debug and send them here? To do so set |
Here is a sample workspace: seq_tests.zip |
Hi! What if you install pytest-xdist and then add the argument |
I am running my tests with pytest and pytest-xdist and the argument While vscode correctly starts up multiple workers and runs the tests in parallel if I click on a group of tests, starting another group or another single test via clicking on it does not work anymore if the run initiated via the first click has not finished yet. |
In previous versions, I didn't need pytest-xdist. In latest version pytest-xdist works fine, except that we have lost in interactivity. |
Type: Bug
A few weeks/months ago, I was able to run unittests in parallel by selecting many of them and clicking on "run".
This doesn't work anymore, tests are run sequencially which takes much more time.
Did you change the internal mechanism?
Extension version: 2025.0.0
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
The text was updated successfully, but these errors were encountered: