Skip to content

Commit

Permalink
feat: add test-api target to Makefile
Browse files Browse the repository at this point in the history
- Introduce test-api target for running API tests in development environment
  • Loading branch information
eser committed Aug 31, 2024
1 parent 6059562 commit 3867456
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: dev build multiarch-build run clean test test-cov test-ci dep lint container-start container-start-prod container-rebuild container-rebuild-prod container-restart container-restart-prod container-stop container-stop-prod container-destroy container-destroy-prod container-update container-update-prod container-dev container-ps container-ps-prod container-logs-all container-logs-all-prod container-logs container-logs-prod container-cli container-cli-prod container-push
.PHONY: dev build multiarch-build run clean test test-api test-cov test-ci dep lint container-start container-start-prod container-rebuild container-rebuild-prod container-restart container-restart-prod container-stop container-stop-prod container-destroy container-destroy-prod container-update container-update-prod container-dev container-ps container-ps-prod container-logs-all container-logs-all-prod container-logs container-logs-prod container-cli container-cli-prod container-push
# .RECIPEPREFIX := $(.RECIPEPREFIX)<space>
BINARY_NAME=service-cli
TESTCOVERAGE_THRESHOLD=0
Expand All @@ -24,6 +24,11 @@ run: build
clean:
go clean

test-api:
cd ./deployments/api/ && \
bru run ./ --env development && \
cd ../../

test:
go test -failfast -count 1 ./...

Expand Down

0 comments on commit 3867456

Please sign in to comment.