Sfoglia il codice sorgente

Add make test target

Jackson Tian 7 anni fa
parent
commit
2957c35335
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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