diff --git a/Makefile b/Makefile index dbeba02..b2c74a1 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ build: $(APP_NAME) # Run all tests .PHONY: test test: - go test -coverprofile=coverage.out # -short + go test -v -coverprofile=coverage.out # -short go tool cover -func=coverage.out # Installs pre-commit hooks diff --git a/main_test.go b/main_test.go index 1910d2d..bfc04b7 100644 --- a/main_test.go +++ b/main_test.go @@ -16,6 +16,8 @@ func TestMain(m *testing.M) { testResult := m.Run() if testResult == 0 && testing.CoverMode() != "" { + fmt.Printf("Covermode: %s", testing.CoverMode()) + c := testing.Coverage() if c < MinCoverage { fmt.Printf("Tests passed but coverage failed at %0.2f and minimum to pass is %0.2f\n", c, MinCoverage)