2025-11-19 14:30:09.274 [info] MANAGE_PY_PATH is set, running Django discovery with path to manage.py as: $./manage.py
2025-11-19 14:30:09.274 [info] Running Django tests with command: ['/Users/user/.local/share/virtualenvs/dj-app-tnTrOaDS/bin/python', './manage.py', 'test', '--testrunner=django_test_runner.CustomDiscoveryTestRunner', '--noinput', '--shuffle', '--parallel', '--keepdb']
2025-11-19 14:30:11.327 [error]
2025-11-19 14:30:11.327 [info] Using shuffle seed: 7640050632 (generated)
Found 1152 test(s).
2025-11-19 14:30:14.071 [info] Running UNITTEST execution for the following test ids: ....
2025-11-19 14:32:02.180 [info] Attempting to use temp directory for test ids file, file name: test-ids-11f98e997c358961993b.txt
2025-11-19 14:32:02.181 [info] All environment variables set for unittest execution, PYTHONPATH: "/Users/user/Projects/dj-app"
2025-11-19 14:32:02.182 [info] Running unittests for workspace /Users/user/Projects/dj-app with arguments: /Users/user/.vscode/extensions/ms-python.python-2025.18.0-darwin-arm64/python_files/unittestadapter/execution.py,--udiscovery,--noinput,--shuffle,--parallel,--keepdb
2025-11-19 14:32:02.182 [info] > ~/.local/share/virtualenvs/dj-app-tnTrOaDS/bin/python ~/.vscode/extensions/ms-python.python-2025.18.0-darwin-arm64/python_files/unittestadapter/execution.py --udiscovery --noinput --shuffle --parallel --keepdb
2025-11-19 14:32:02.182 [info] cwd: .
2025-11-19 14:32:31.350 [info] Test Result named pipe /var/folders/0n/4qvkqnzs3sl7w6m5vb1vxn9m0000gn/T/python-test-results-be3ef89e529d3fca4b1f cancelled
Type: Bug
Behaviour
Running tests in parallel with coverage gives incorrect results
Steps to reproduce:
Create django unittest suites
Use the follwing test args:
Expected behaviour
The extension should combine the test results from parallel runs while reporting the coverage
ref: https://docs.djangoproject.com/en/5.2/internals/contributing/writing-code/unit-tests/#code-coverage
Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2025.18.0
VS Code version: Code 1.106.1 (cb1933bbc38d329b3595673a600fab5c7368f0a7, 2025-11-16T10:20:23.745Z)
OS version: Darwin arm64 25.1.0
Modes:
python.languageServersetting: PylanceUser Settings
Installed Extensions
System Info
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off