stackit-cli icon indicating copy to clipboard operation
stackit-cli copied to clipboard

ci: calculate and assert test coverage

Open gfelbing opened this issue 1 year ago • 0 comments

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.

gfelbing avatar Mar 06 '24 16:03 gfelbing