Skip to content

Commit

Permalink
Makefile: Add test targets
Browse files Browse the repository at this point in the history
Improve existing test targets and add the new one to run just the smoke
test.

Signed-off-by: Mike Sul <[email protected]>
  • Loading branch information
mike-sul committed Oct 7, 2024
1 parent 061afe0 commit bc4ed4d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ check_connect_timeout:
format:
@$(GO) fmt ./...

test:
@$(GO) test ./...
test-unit:
@$(GO) test -v ./pkg/compose/...

$(bd):
@mkdir -p $@
Expand All @@ -69,9 +69,12 @@ check: format
tidy-mod:
go mod tidy -go=$(MODVER)

# the followinf targets should be run only in the dev container
preload-images:
test/fixtures/preload-images.sh

# target should be run only in the dev container
test-e2e: $(exe) preload-images
go test -v ./...
@$(GO) test -v ./...

test-smoke: $(exe) preload-images
@$(GO) test -v -run TestSmoke test/integration/smoke_test.go

0 comments on commit bc4ed4d

Please sign in to comment.