Skip to content

Commit d8c90b0

Browse files
committed
chore: add test coverage report generation to Makefile
1 parent fc50883 commit d8c90b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ lint:
1616

1717
# Force module mode and CGO so wasmer-go finds its packaged libs.
1818
test:
19-
GOFLAGS= CGO_ENABLED=1 go test -mod=mod -v=true -cover=true -count=1 ./...
19+
GOFLAGS= CGO_ENABLED=1 go test -mod=mod -v=true -cover=true -coverprofile=coverage.out -count=1 ./... && go tool cover -html=coverage.out -o coverage.html
2020

2121
vendor:
2222
go mod vendor

0 commit comments

Comments
 (0)