open-vault/vendor/github.com/michaelklishin/rabbit-hole/Makefile

27 lines
605 B
Makefile
Raw Normal View History

2015-11-19 05:45:05 +00:00
export GOPATH := $(CURDIR)
COVER_FILE := coverage
all: test
.PHONY: test
test: install-dependencies
2017-01-04 21:47:38 +00:00
go test -race -v
2015-11-19 05:45:05 +00:00
cover: install-dependencies install-cover
go test -v -test.coverprofile="$(COVER_FILE).prof"
sed -i.bak 's|_'$(GOPATH)'|.|g' $(COVER_FILE).prof
go tool cover -html=$(COVER_FILE).prof -o $(COVER_FILE).html
rm $(COVER_FILE).prof*
install-cover:
go get code.google.com/p/go.tools/cmd/cover
install-dependencies:
go get github.com/onsi/ginkgo
go get github.com/onsi/gomega
go get github.com/streadway/amqp
2016-06-08 14:33:08 +00:00
# to get Ginkgo CLI
go install github.com/onsi/ginkgo/ginkgo