diff --git a/.gitignore b/.gitignore index 56e780d..ce15529 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ mumbledj* +coverage.txt +*.coverprofile diff --git a/.travis.yml b/.travis.yml index 68eb960..8e2a4ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ go: before_install: - go get github.com/Masterminds/glide + - go get github.com/go-playground/overalls script: - make test diff --git a/Makefile b/Makefile index f994d61..f34cc6b 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ mumbledj: ## Default action. Builds MumbleDJ. .PHONY: test test: ## Runs unit tests for MumbleDJ. - @env GO15VENDOREXPERIMENT="1" go test $(dirs) + @env GO15VENDOREXPERIMENT="1" overalls -project=github.com/matthieugrieger/mumbledj -covermode=atomic + @mv overalls.coverprofile coverage.txt .PHONY: clean clean: ## Removes compiled MumbleDJ binaries.