Skip to content

Commit fd23c73

Browse files
Add coverage report details
1 parent 46dec54 commit fd23c73

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)