Skip to content

Commit

Permalink
fix: exclude pkg/jetstream from normal test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCuse committed Mar 8, 2024
1 parent cd99c9a commit 7b0fc49
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,48 @@ up:
docker-compose up -d

test:
go test -parallel 20 ./pkg...
go test -parallel 20 ./pkg/nats...

test_v:
go test -parallel 20 -v ./pkg...
go test -parallel 20 -v ./pkg/nats...

test_short:
go test -parallel 20 ./pkg... -short
go test -parallel 20 ./pkg/nats... -short

test_race:
go test ./pkg... -short -race
go test ./pkg/nats... -short -race

test_stress:
STRESS_TEST_COUNT=4 go test -tags=stress -parallel 30 -timeout=45m ./pkg...
STRESS_TEST_COUNT=4 go test -tags=stress -parallel 30 -timeout=45m ./pkg/nats...

test_codecov:
echo "this is a no-op because it times out on github runners but you could try"
echo "go test -coverprofile=coverage.out -covermode=atomic ./pkg... -short"
echo "go test -coverprofile=coverage.out -covermode=atomic ./pkg/nats... -short"

test_reconnect:
go test -tags=reconnect ./pkg...
go test -tags=reconnect ./pkg/nats...

jetstream_test:
go test -parallel 20 ./pkg/jetstream...

jetstream_test_v:
go test -parallel 20 -v ./pkg/jetstream...

jetstream_test_short:
go test -parallel 20 ./pkg/jetstream... -short

jetstream_test_race:
go test ./pkg/jetstream... -short -race

jetstream_test_stress:
STRESS_TEST_COUNT=4 go test -tags=stress -parallel 30 -timeout=45m ./pkg/jetstream...

jetstream_test_reconnect:
go test -tags=reconnect ./pkg/jetstream...

jetstream_test_codecov:
echo "this is a no-op because it times out on github runners but you could try"
echo "go test -coverprofile=coverage.out -covermode=atomic ./pkg/jetstream... -short"

BENCHCNT := 1

Expand Down Expand Up @@ -52,4 +74,5 @@ update_watermill:
go mod tidy

sed -i '\|go 1\.|d' go.mod
go mod edit -fmt
go mod edit -fmt

0 comments on commit 7b0fc49

Please sign in to comment.