Skip to content

Commit

Permalink
Add makefile target for acctests and remove from general tests.
Browse files Browse the repository at this point in the history
Currently neither the travis setup or the makefile have a method
of starting Nomad to run the acceptance tests. Therefore those
tests should be removed from the standard test run. For clarity
a makefile target has been added to trigger the acctests when
needed.
  • Loading branch information
jrasell committed Sep 12, 2019
1 parent 957a572 commit 874e653
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ build: ## Build Levant for development purposes
test: ## Run the Levant test suite with coverage
@echo "==> Running $@..."
@go test -cover -v -tags -race \
"$(BUILDTAGS)" $(shell go list ./... | grep -v vendor)
"$(BUILDTAGS)" $(shell go list ./... |grep -v vendor |grep -v test)

.PHONY: acceptance-test
acceptance-test: ## Run the Levant acceptance tests
@echo "==> Running $@..."
go test -timeout 120s github.com/jrasell/levant/test -v

.PHONY: release
release: ## Trigger the release build script
Expand Down

0 comments on commit 874e653

Please sign in to comment.