Add HTML presentation for code coverage.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-05-02 11:01:07 +08:00
parent 5f98f87014
commit 36dc3335f8
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ build: clean
sh script/build.sh
test:
cd gorush && go test -cover -v ./...
cd gorush && go test -cover -v -coverprofile=coverage.out
html: test
cd gorush && go tool cover -html=coverage.out
docker_build: clean
tar -zcvf build.tar.gz gorush.go gorush