...
- Install the Python Extension for VSCode
- Run the
Python: Configure Tests
command - In Settings > Python > Testing: Pytest Args, add the
--no-cov
argument - Run the
Python: Discover Tests
command - This adds the
Run Test | Debug Test
buttons in VSCode with breakpoint integration
Alternatively, edit settings as follows, then run Python: Discover Tests
Code Block | ||||
---|---|---|---|---|
| ||||
{
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"--no-cov"
]
} |
Resources:
...