Skip to content

fix: show packages without test files when using -cover - #163

Merged
mfridman merged 1 commit into
mainfrom
mf/fix-cover-no-test-files
Nov 11, 2026
Merged

mfridman merged 1 commit into
mainfrom
mf/fix-cover-no-test-files

Conversation

@mfridman

Copy link
Copy Markdown
Owner

This PR fixes how tparse handles packages without test files when tests run with -cover. Since Go 1.22, these packages were missing from the -notests output, and -progress reported them as passed.

# before
[PASS]       0.46s      example.com/mod/notests

# after
[SKIP]       0.46s      example.com/mod/notests [no test files]

With -notests, they now show as NOTEST, the same as without -cover. The default output does not change.

Closes #106

@mfridman
mfridman merged commit 9f26d29 into main Nov 11, 2026
3 checks passed
@mfridman
mfridman deleted the mf/fix-cover-no-test-files branch November 11, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prepare for upcoming go1.22 changes

1 participant