Przeglądaj źródła

Add make test target

Jackson Tian 7 lat temu
rodzic
commit
2957c35335
1 zmienionych plików z 4 dodań i 0 usunięć
  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