Skip to content

Commit

Permalink
Document make unit-test and make test
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Nov 1, 2018
1 parent fa8e249 commit 44337ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ build: ## Build eksctl
##@ Testing & CI

.PHONY: test
test: generate ## Run unit tests
test: generate ## Run unit test (and re-generate code under test)
@git diff --exit-code pkg/nodebootstrap/assets.go > /dev/null || (git --no-pager diff; exit 1)
@git diff --exit-code ./pkg/eks/mocks > /dev/null || (git --no-pager diff; exit 1)
@$(MAKE) unit-test
@test -z $(COVERALLS_TOKEN) || $(GOPATH)/bin/goveralls -coverprofile=coverage.out -service=circle-ci

.PHONY: unit-test
unit-test:
unit-test: ## Run unit test only
@CGO_ENABLED=0 go test -v -covermode=count -coverprofile=coverage.out ./pkg/... ./cmd/...

LINTER ?= gometalinter ./...
Expand Down

0 comments on commit 44337ce

Please sign in to comment.