Skip to content

Commit

Permalink
chore: use "go test" instead of "ginkgo" (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellistarn authored Jul 5, 2022
1 parent 0027187 commit 21ff268
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ help: ## Display help

dev: verify test ## Run all steps in the developer loop

ci: toolchain verify licenses battletest ## Run all steps used by continuous integration
ci: toolchain verify licenses battletest coverage ## Run all steps used by continuous integration

test: ## Run tests
go test -v ./pkg/...
go test ./pkg/...

strongertests:
# Run randomized, racing, code coveraged, tests
ginkgo -r \
-cover -coverprofile=coverage.out -outputdir=. -coverpkg=./pkg/... \
--randomizeAllSpecs --randomizeSuites -race ./pkg/...
battletest: ## Run randomized, racing, code coveraged, tests
go test ./pkg/... \
-race \
-cover -coverprofile=coverage.out -outputdir=. -coverpkg=./pkg/... \
-ginkgo.randomizeAllSpecs \
-tags random_test_delay

e2etests: ## Run the e2e suite against your local cluster
go test -v ./test/... -environment-name=${CLUSTER_NAME}
Expand All @@ -39,10 +40,9 @@ benchmark:
go test -tags=test_performance -run=NoTests -bench=. ./...

deflake:
for i in $(shell seq 1 5); do make strongertests || exit 1; done
ginkgo -r pkg -race -tags random_test_delay
for i in $(shell seq 1 5); do make battletest || exit 1; done

battletest: strongertests
coverage:
go tool cover -html coverage.out -o coverage.html

verify: codegen ## Verify code. Includes dependencies, linting, formatting, etc
Expand Down
1 change: 0 additions & 1 deletion hack/toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ tools() {
go install github.com/google/[email protected]
go install github.com/mikefarah/yq/[email protected]
go install github.com/norwoodj/helm-docs/cmd/[email protected]
go install github.com/onsi/ginkgo/[email protected]
go install sigs.k8s.io/controller-runtime/tools/[email protected]
go install sigs.k8s.io/controller-tools/cmd/[email protected]
go install github.com/sigstore/cosign/cmd/[email protected]
Expand Down

0 comments on commit 21ff268

Please sign in to comment.