Renamed test target to coverage, added test target for local testing

pull/153/head
Matthieu Grieger 2016-06-21 23:01:45 -07:00
parent e63d5ebfa0
commit ae4d863dd2
2 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ before_install:
- go get github.com/go-playground/overalls
script:
- make test
- make coverage
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@ -7,6 +7,10 @@ mumbledj: ## Default action. Builds MumbleDJ.
.PHONY: test
test: ## Runs unit tests for MumbleDJ.
@env GO15VENDOREXPERIMENT="1" go test $(dirs)
.PHONY: coverage
coverage: ## Runs coverage tests for MumbleDJ.
@env GO15VENDOREXPERIMENT="1" overalls -project=github.com/matthieugrieger/mumbledj -covermode=atomic
@mv overalls.coverprofile coverage.txt