add all test task.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-05-03 09:42:53 +08:00
parent 3af8d302fb
commit 865f55438d
2 changed files with 10 additions and 4 deletions

View File

@@ -11,9 +11,18 @@ all: build
build: clean
sh script/build.sh
test:
test: memory_test redis_test boltdb_test
cd gorush && go test -cover -v -coverprofile=coverage.out
memory_test:
cd gorush/storage/memory && go test -v -cover *.go
redis_test:
cd gorush/storage/redis && go test -v -cover *.go
boltdb_test:
cd gorush/storage/boltdb && go test -v -cover *.go
html: test
cd gorush && go tool cover -html=coverage.out