1 parent 47b2210 commit bb9dd60Copy full SHA for bb9dd60
1 file changed
Makefile
@@ -18,11 +18,15 @@ opera-image:
18
--build-arg GOPROXY=$(GOPROXY) \
19
-f ./docker/Dockerfile.opera -t "opera:$(TAG)" .
20
21
-
22
.PHONY: test
23
test:
24
go test ./...
25
+.PHONY: coverage
26
+coverage:
27
+ go test -coverpkg=./... -coverprofile=cover.prof ./...
28
+ go tool cover -func cover.prof | grep -e "^total:"
29
+
30
.PHONY: clean
31
clean:
- rm ./build/opera
32
+ rm -fr ./build/*
0 commit comments