File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,16 @@ Both scripts:
8888
8989#### Viewing Coverage Reports
9090
91- ** In VS Code:**
92- - Coverage is automatically displayed in the file explorer (showing % next to Python files)
93- - Coverage gutters appear in open Python files (green/red/orange lines)
94- - Install the "Coverage Gutters" extension for enhanced visualization
91+ ** In VS Code (no extra extensions):**
92+ - Open the Testing view (beaker icon in the Activity Bar).
93+ - Click the "Toggle Code Coverage" shield button in the Testing toolbar.
94+ - Run tests from the Testing view (Run All or individual test runs).
95+ - The Explorer will decorate Python files with coverage percentages, and the editor will show covered/uncovered lines.
96+ - Make sure the Python extension is enabled and ` coverage ` /` pytest-cov ` are available in your venv. If needed:
97+ ``` powershell
98+ pip install coverage pytest-cov
99+ ```
100+ - Note: Running pytest only from the terminal won’t decorate the Explorer. Use the Testing UI to see coverage overlays.
95101
96102** In Browser:**
97103- Open ` htmlcov/index.html ` in your browser for detailed coverage information
You can’t perform that action at this time.
0 commit comments