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

ci: calculate and assert test coverage #121

Open
gfelbing opened this issue Mar 6, 2024 · 0 comments
Open

ci: calculate and assert test coverage #121

gfelbing opened this issue Mar 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gfelbing
Copy link
Contributor

gfelbing commented Mar 6, 2024

The current Makefile doesnt calculate test coverage.

Calculating it is as easy as

go test -v -coverpkg=./... -coverprofile coverage.out ./...
go tool cover -func  coverage.out

When running the tests in the CI, it could verify that the coverage doesn't decrease by a PR.

@joaopalet joaopalet added the enhancement New feature or request label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants