Skip to content

Commit

Permalink
feat: add a stress-test target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-orlov committed Jul 14, 2023
1 parent 14dff19 commit f6e3a13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ test: ## Run tests with coverage
go test -v ./... -coverprofile=$(repo_root)/test_coverage.out &&\
echo "total coverage: $$(go tool cover -func=$(repo_root)/test_coverage.out | grep total: | awk '{ print $$3}')"\

.PHONY: stress-test
stress-test: ## Run stress tests
@echo "> Running stress tests..."
cd deploy && \
docker-compose up \
--abort-on-container-exit \
--force-recreate \
--pull always \
--scale client=10

.PHONY: tidy
tidy: ## Clean and format Go code
@echo "> Tidying..."
Expand Down Expand Up @@ -52,6 +62,7 @@ help: ## Show this help
@echo "make run-client - Run the client passing the arguments"
@echo "make start - Run the server and client using docker-compose"
@echo "make test - Run tests"
@echo "make stress-test - Run stress tests"
@echo "make tidy - Clean and format Go code"
@echo "make fmt - Format Go code"
@echo "make lint-host - Run golangci-lint directly on host"
Expand Down

0 comments on commit f6e3a13

Please sign in to comment.