-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Makefile, move two mocks to correct folder, refactor test helpers
- Loading branch information
Showing
12 changed files
with
71 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
SHELL=bash | ||
|
||
all: clean fmt test fixture install docker integration | ||
.PHONY: all | ||
all: clean fmt mocks test install docker integration | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf mocks | ||
|
||
.PHONY: fmt | ||
fmt: | ||
go fmt ./... | ||
|
||
test: | ||
.PHONY: test | ||
test: mocks | ||
go test ./... | ||
|
||
fixture: | ||
mockery --print --dir pkg/fixtures --name RequesterVariadic > pkg/fixtures/mocks/requester_variadic.go | ||
mockery --print --dir pkg/fixtures --name RequesterVariadic --unroll-variadic=False > pkg/fixtures/mocks/requester_variadic_one_arg.go | ||
mocks: $(shell find . -type f -name '*.go' -not -name '*_test.go') | ||
go run . --dir pkg/fixtures --output mocks/pkg/fixtures | ||
go run . --all=false --print --dir pkg/fixtures --name RequesterVariadic --structname RequesterVariadicOneArgument --unroll-variadic=False > mocks/pkg/fixtures/RequesterVariadicOneArgument.go | ||
@touch mocks | ||
|
||
.PHONY: install | ||
install: | ||
go install ./... | ||
go install . | ||
|
||
.PHONY: docker | ||
docker: | ||
docker build -t vektra/mockery . | ||
|
||
.PHONY: integration | ||
integration: docker install | ||
./hack/run-e2e.sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.