Skip to content

Commit 3fd3f93

Browse files
committed
Adding notes to django and coverage docs
1 parent d758d15 commit 3fd3f93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/python/testing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ Support for running tests in parallel with pytest is available through the `pyte
237237
## Run tests with coverage
238238

239239
Test coverage is a measure of how much of your code is covered by your tests, which can help you identify areas of your code that are not being fully tested. For more information on test coverage, visit VS Code's [Test Coverage documentation](/docs/editor/testing#_test-coverage.md).
240+
> **Tip**: Running Python tests with coverage is currently only supported when `"python.experiments.optInto": ["pythonTestAdapter"]` is added to your User `settings.json`.
240241
241242
To run tests with coverage enabled, select the coverage run icon in the Test Explorer or the “Run with coverage” option from any menu you normally trigger test runs from. The Python extension will run coverage using the [`pytest-cov`](https://pypi.org/project/pytest-cov/) plugin if you are using pytest, or with [`coverage.py`](https://coverage.readthedocs.io/) for unittest.
242243
> **Note**: Before running tests with coverage, make sure to install the correct testing coverage package for your project.
@@ -329,7 +330,7 @@ Below are all the supported commands for testing with the Python extension in VS
329330
## Django unit tests
330331

331332
The Python extension also offers support for discovering and running Django unit tests! You can get your Django tests discovered with only a few additional setup steps:
332-
333+
> **Tip**: Django test support is currently only supported when `"python.experiments.optInto": ["pythonTestAdapter"]` is added to your User `settings.json`.
333334

334335
1. Set `"python.testing.unittestEnabled": true,` in your `settings.json` [file](/docs/getstarted/settings.md#settingsjson).
335336
2. Add `MANAGE_PY_PATH` as an environment variable:

0 commit comments

Comments
 (0)