vscode-coverage-gutters icon indicating copy to clipboard operation
vscode-coverage-gutters copied to clipboard

why "File Uncovered" for my tests_*.py inside `tests/` folder?

Open alanwilter opened this issue 2 months ago • 5 comments

I use pyproject.toml and I have:

[tool.pytest.ini_options]
addopts = "tests --cov-branch --cov=src/pdfgen/ --cov=tests/ --cov-report=term-missing:skip-covered --cov-report=xml --dist=loadgroup -n 8 --durations=5"

When I run pytest on my vscode terminal, everything is fine, there's not even branches missing. But when I open a test_main.py file for example, Gutters reports File Uncovered, why? What am I missing?

FYI, openning src/pdfgen/main.py shows the gutters pretty fine.

alanwilter avatar Sep 15 '25 12:09 alanwilter