Skip to content

Commit 6cf16b9

Browse files
committed
Get all dependencies for unit tests
-Update the make unit call to get mockgen dependency -Pull down the mockgen repo before installing
1 parent 7d01356 commit 6cf16b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ osbs-build:
2020
# hack/build.sh
2121
./tmp/build/build.sh
2222

23-
unit:
23+
unit: generate-mocks unit-test
24+
25+
unit-test:
2426
go test -v ./pkg/...
2527

2628
generate-mocks:
27-
go install -i github.com/golang/mock/mockgen
29+
go get github.com/golang/mock/mockgen
2830

2931
@echo making sure directory for mocks exists
3032
mkdir -p $(MOCKS_DIR)

0 commit comments

Comments
 (0)