Skip to content

Commit d1fd7dc

Browse files
committed
Makefile add 'fast-test' target for development.
1 parent af1b438 commit d1fd7dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ mock_gen:
6464
cat hack/go-license-header.txt proto/agent/mocks/agent_mock.go > proto/agent/mocks/agent_mock.licensed.go
6565
mv proto/agent/mocks/agent_mock.licensed.go proto/agent/mocks/agent_mock.go
6666

67+
# Unit tests with faster execution (nicer for development).
68+
.PHONY: fast-test
69+
fast-test:
70+
go test -mod=vendor -race ./...
71+
cd konnectivity-client && go test -race ./...
72+
73+
# Unit tests with fuller coverage, invoked by CI system.
6774
.PHONY: test
6875
test:
6976
go test -mod=vendor -race -covermode=atomic -coverprofile=konnectivity.out ./... && go tool cover -html=konnectivity.out -o=konnectivity.html

0 commit comments

Comments
 (0)