Add HTML presentation for code coverage.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
5f98f87014
commit
36dc3335f8
5
Makefile
5
Makefile
|
@ -12,7 +12,10 @@ build: clean
|
||||||
sh script/build.sh
|
sh script/build.sh
|
||||||
|
|
||||||
test:
|
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
|
docker_build: clean
|
||||||
tar -zcvf build.tar.gz gorush.go gorush
|
tar -zcvf build.tar.gz gorush.go gorush
|
||||||
|
|
Loading…
Reference in New Issue