You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make covhtml opens a file that nothing in the repo generates.
Makefile:
.PHONY: covhtml
covhtml: ## look at code coverage
open .cover/coverage.html
make test writes its profile to the repo root as coverage.txt (-coverprofile=coverage.txt), and there is no rule anywhere that produces .cover/coverage.html. The only other .cover path in the repo was teste2e-covdata's test/e2e/.cover, which held raw covcounters/covmeta files rather than HTML, and that target is being removed by #2208.
So make covhtml fails with a missing file on any checkout.
Suggested fix
Generate the report from the profile the test target actually produces:
.PHONY: covhtml
covhtml: test ## generate and open the coverage report$(GO_EXE) tool cover -html=coverage.txt -o coverage.html
open coverage.html
coverage.html is already in .gitignore. Separately, open is macOS-only — the current target has the same limitation, so that is only worth addressing if someone wants to make it portable at the same time.
Activity
TanvirTian commentedon Oct 2, 2026
i'd like to work on it 🐱