Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between ignored testPackages and ignored coverPackages #40

Open
f-blass opened this issue Jan 10, 2022 · 0 comments
Open

Comments

@f-blass
Copy link
Contributor

f-blass commented Jan 10, 2022

In my project setup I have test packages like api_test which contain only tests for the package api. I want to execute these but I do not want to have coverage for the api_test package.
Furthermore I have a package test with test helpers functions. Tests from here could be executed, but yet again I do not want to include coverage data for this package.

With the --ignore flag packages are both excluded from the go test <packages> command, as well as the -coverpkg=<packages> option.

The ..._test package construct is common in Go, so I think it would be helpful to have different ignores for testPackages and coverPackages.

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

No branches or pull requests

1 participant