feat: add api test make file

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw) 2023-11-07 03:43:05 +08:00
parent 4d2332f1e3
commit 3e4fa66f93
2 changed files with 11 additions and 0 deletions

View File

@ -166,6 +166,11 @@ test:
cover:
@$(MAKE) go.test.cover
## test-api: Run api test. ✨
.PHONY: test-api
test-api:
@$(MAKE) go.test.api
## updates: Check for updates to go.mod dependencies. ✨
.PHONY: updates
@$(MAKE) go.updates

View File

@ -193,6 +193,12 @@ go.lint: tools.verify.golangci-lint
go.test:
@$(GO) test ./...
## go.test.api: Run api test
.PHONY: go.test.api
go.test.api:
@echo "===========> Run api test"
@$(ROOT_DIR)/scripts/install/test.sh openim::test::test
## go.demo: Run demo
.PHONY: go.demo
go.demo: