Support testing multiple package.
Solution: https://goo.gl/QkJTrA ref: https://github.com/golang/go/issues/6909 Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
5
Makefile
5
Makefile
@@ -25,6 +25,9 @@ endif
|
||||
build: clean
|
||||
sh script/build.sh $(VERSION)
|
||||
|
||||
coverage:
|
||||
sh go.test.sh atomic
|
||||
|
||||
test: redis_test boltdb_test memory_test config_test
|
||||
go test -v -cover -covermode=count -coverprofile=coverage.txt ./gorush/...
|
||||
|
||||
@@ -41,7 +44,7 @@ config_test: init
|
||||
go test -v -cover -covermode=count -coverprofile=coverage.txt ./config/...
|
||||
|
||||
html:
|
||||
go tool cover -html=coverage.txt && unlink coverage.txt
|
||||
go tool cover -html=coverage.txt
|
||||
|
||||
docker_build: clean
|
||||
tar -zcvf build.tar.gz gorush.go gorush config storage Makefile glide.lock glide.yaml
|
||||
|
||||
Reference in New Issue
Block a user