Skip to content

Commit

Permalink
Sepearate mock command
Browse files Browse the repository at this point in the history
  • Loading branch information
nwneisen committed Dec 11, 2024
1 parent 9ecacec commit d7b3523
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ vendor: ## Go mod tidy and vendor
integration: ## Run integration tests
sudo critest -runtime-endpoint=unix:///var/run/cri-dockerd.sock -ginkgo.skip="runtime should support apparmor|runtime should support reopening container log|runtime should support execSync with timeout|runtime should support selinux|.*should support propagation.*"

# This needs the archived version of mockgen
# https://github.com/golang/mock.PHONY: test
.PHONY: test
test: ## Run unit tests
mockgen -source libdocker/client.go -destination libdocker/testing/mock_client.go -package testing
go test ./...

# This needs the archived version of mockgen
# https://github.com/golang/mock
.PHONY: mock
mock: ## Generate the test mocks
mockgen -source libdocker/client.go -destination libdocker/testing/mock_client.go -package testing

### Documentation
.PHONY: docs
docs: ## Run docs server
Expand Down

0 comments on commit d7b3523

Please sign in to comment.