Skip to content

Commit

Permalink
Merge pull request #513 from radeksimko/b-test-deps
Browse files Browse the repository at this point in the history
tests: Dependencies are the same for integ & unit
  • Loading branch information
jasdel committed Jan 18, 2016
2 parents c5550b8 + cc6ece7 commit 3ad0b07
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ help:
@echo " gen-test to generate protocol tests"
@echo " gen-services to generate services"
@echo " get-deps to go get the SDK dependencies"
@echo " get-deps-unit to get the SDK's unit test dependencies"
@echo " get-deps-integ to get the SDK's integration test dependencies"
@echo " get-deps-tests to get the SDK's test dependencies"
@echo " get-deps-verify to get the SDK's verification dependencies"

generate: gen-test gen-endpoints gen-services
Expand All @@ -45,15 +44,15 @@ build:
@echo "go build SDK and vendor packages"
@go build $(SDK_WITH_VENDOR_PKGS)

unit: get-deps-unit build verify
unit: get-deps-tests build verify
@echo "go test SDK and vendor packages"
@go test $(SDK_WITH_VENDOR_PKGS)

unit-with-race-cover: get-deps-unit build verify
unit-with-race-cover: get-deps-tests build verify
@echo "go test SDK and vendor packages"
@go test -v -race -cpu=1,2,4 -covermode=atomic $(SDK_WITH_VENDOR_PKGS)

integration: get-deps-integ
integration: get-deps-tests
go test -tags=integration ./awstesting/integration/customizations/...
gucumber ./awstesting/integration/smoke

Expand All @@ -69,19 +68,16 @@ lint:
vet:
go tool vet -all -shadow $(shell ls -d */ | grep -v vendor)

get-deps: get-deps-unit get-deps-integ get-deps-verify
get-deps: get-deps-tests get-deps-verify
@echo "go get SDK dependencies"
@go get -v $(SDK_ONLY_PKGS)

get-deps-unit:
@echo "go get SDK unit testing dependencies"
get-deps-tests:
@echo "go get SDK testing dependencies"
go get github.com/lsegal/gucumber/cmd/gucumber
go get github.com/stretchr/testify
go get github.com/smartystreets/goconvey

get-deps-integ: get-deps-unit
@echo "go get SDK integration testing dependencies"
go get github.com/lsegal/gucumber/cmd/gucumber

get-deps-verify:
@echo "go get SDK verification utilities"
go get github.com/golang/lint/golint
Expand Down

0 comments on commit 3ad0b07

Please sign in to comment.