Ver código fonte

Add make test target

Jackson Tian 7 anos atrás
pai
commit
2957c35335
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      Makefile

+ 4 - 0
Makefile

@@ -3,3 +3,7 @@ all:
 
 fmt:
 	go fmt ./sdk ./integration ./services/...
+
+test:
+	go test -coverprofile=coverage.txt -covermode=atomic ./sdk
+	go tool cover -html=coverage.txt -o coverage.html