Skip to content

Commit

Permalink
pass optional TESTOPTs
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado committed Aug 24, 2024
1 parent 0a9b51b commit c09ebb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ lint: phony
golangci-lint run

short-test: phony
go test -v -race github.com/jandelgado/rabtap/cmd/rabtap
go test -v -race github.com/jandelgado/rabtap/pkg
go test -v $(TESTOPTS) -race github.com/jandelgado/rabtap/cmd/rabtap
go test -v $(TESTOPTS) -race github.com/jandelgado/rabtap/pkg

test-app: phony
go test -race -v -tags "integration" -cover -coverprofile=coverage_app.out github.com/jandelgado/rabtap/cmd/rabtap
go test -race -v -tags "integration" $(TESTOPTS) -cover -coverprofile=coverage_app.out github.com/jandelgado/rabtap/cmd/rabtap

test-lib: phony
go test -race -v -tags "integration" -cover -coverprofile=coverage.out github.com/jandelgado/rabtap/pkg
go test -race -v -tags "integration" $(TESTOPTS) -cover -coverprofile=coverage.out github.com/jandelgado/rabtap/pkg

test: test-app test-lib
grep -v "^mode:" coverage_app.out >> coverage.out
Expand Down

0 comments on commit c09ebb2

Please sign in to comment.