Skip to content

Commit

Permalink
allow selecting test granularity using make (cosmos#350)
Browse files Browse the repository at this point in the history
* allow selecting test granularity using make

Adds new commands to makefile:
* make test-short (unit, e2e)
* make test-diff (difference tests only)
* make test-integration (integration tests only)
* make test-no-cache (equivalent to make test with caching disabled)

Closes: cosmos#345

* Update README.md (remove static analysis)

Co-authored-by: Daniel T <[email protected]>
  • Loading branch information
MSalopek and danwt authored Sep 8, 2022
1 parent bfd886d commit 5dd9413
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,26 @@ install: go.sum
go install $(BUILD_FLAGS) ./cmd/interchain-security-pd
go install $(BUILD_FLAGS) ./cmd/interchain-security-cd

# run all tests: unit, e2e and diff
test:
go test ./...

# run e2e and unit tests
test-short:
go test ./tests/e2e/... ./x/... ./app/...

# run difference tests
test-diff:
go test ./tests/difference/...

# run integration tests
test-integration:
go run ./tests/integration/...

# run all tests with caching disabled
test-no-cache:
go test ./... -count=1

BUILD_TARGETS := build

build: BUILD_ARGS=-o $(BUILDDIR)/
Expand Down

0 comments on commit 5dd9413

Please sign in to comment.