We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Type: Bug
The new test adapter properly runs Django tests, but fails to gather coverage data from those tests.
/tmp/poc
python -m venv /tmp/poc/.venv source /tmp/poc/.venv/bin/activate
pip install django coverage
django-admin startproject poc /tmp/poc
/tmp/poc/.env
MANAGE_PY_PATH=/tmp/poc/manage.py
/tmp/poc/poc/tests.py
from django.test import TestCase class POCTest(TestCase): def test_poc(self): pass
/tmp/poc/.vscode/settings.json
{ "python.testing.unittestEnabled": true, "python.testing.unittestArgs": [ ] }
poc
POCTestCase
/tmp/poc/poc/__init__.py
Extension version: 2025.0.0 VS Code version: Code 1.97.0 (Universal) (33fc5a94a3f99ebe7087e8fe79fbe1d37a251016, 2025-02-04T22:41:26.688Z) OS version: Darwin arm64 24.3.0 Modes:
python.languageServer
languageServer: "Pylance" experiments • enabled: false
The text was updated successfully, but these errors were encountered:
coverage not yet supported with Django: #24199
Sorry, something went wrong.
No branches or pull requests
Type: Bug
Behaviour
The new test adapter properly runs Django tests, but fails to gather coverage data from those tests.
Steps to reproduce:
/tmp/poc
python -m venv /tmp/poc/.venv source /tmp/poc/.venv/bin/activate
/tmp/poc/.env
with the following:MANAGE_PY_PATH=/tmp/poc/manage.py
/tmp/poc/poc/tests.py
with the following:/tmp/poc/.vscode/settings.json
with the following:poc
project in VS CodePOCTestCase
should be in the testing panel. Run it with coverage/tmp/poc/poc/__init__.py
will be 0%.Extension version: 2025.0.0
VS Code version: Code 1.97.0 (Universal) (33fc5a94a3f99ebe7087e8fe79fbe1d37a251016, 2025-02-04T22:41:26.688Z)
OS version: Darwin arm64 24.3.0
Modes:
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
The text was updated successfully, but these errors were encountered: