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
adding GOEXPERIMENT=nocoverageredesign worked. For me the problem is we have taken task to increase the unit test coverage across all our services and hence we would be doing one package at a time.. It will be too much of work for writing a makefile which uses go tool cover
Hi,
I have a mock package with 15 mock_*_test.go files. In one of the test file I add following
func TestMain(m *testing.M) { coverage.Run(m, 90) }
However when I am running the test it shows FAIL even when coverage is at 94.2%
`❯ go test -cover $(go list ./... | grep pkg/mock)
PASS
coverage: 94.2% of statements
FAIL Coverage threshold not met 90.0 >= 32.2 for tracing/pkg/mock
FAIL tracing/pkg/mock 0.399s
FAIL`
The text was updated successfully, but these errors were encountered: