Sitelet https://github.com/Fantom-foundation/Sonic/commit/bb9dd605ad74e465135c4c75937917ea1a0cda9a
Skip to content

Commit bb9dd60

Browse files
committed
make coverage
1 parent 47b2210 commit bb9dd60

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ opera-image:
1818
--build-arg GOPROXY=$(GOPROXY) \
1919
-f ./docker/Dockerfile.opera -t "opera:$(TAG)" .
2020

21-
2221
.PHONY: test
2322
test:
2423
go test ./...
2524

25+
.PHONY: coverage
26+
coverage:
27+
go test -coverpkg=./... -coverprofile=cover.prof ./...
28+
go tool cover -func cover.prof | grep -e "^total:"
29+
2630
.PHONY: clean
2731
clean:
28-
rm ./build/opera
32+
rm -fr ./build/*

0 commit comments

Comments
 (0)