Explorar o código

Add make test target

Jackson Tian %!s(int64=7) %!d(string=hai) anos
pai
achega
2957c35335
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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