Makefile 251 B

1234567891011121314151617
  1. COVERPROFILE=cover.out
  2. default: test
  3. cover:
  4. go test -coverprofile=$(COVERPROFILE) .
  5. go tool cover -html=$(COVERPROFILE)
  6. rm $(COVERPROFILE)
  7. dependencies:
  8. go get -d .
  9. test:
  10. go test -i ./...
  11. go test -v ./...
  12. .PHONY: coverage dependencies test