From 3e4fa66f9398327e48ad2a089b7d2107f37cb102 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw)" <3293172751nss@gmail.com> Date: Tue, 7 Nov 2023 03:43:05 +0800 Subject: [PATCH] feat: add api test make file Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --- Makefile | 5 +++++ scripts/make-rules/golang.mk | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 67f595fb4..a4964cb3e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/scripts/make-rules/golang.mk b/scripts/make-rules/golang.mk index 29f527028..e0cb5861d 100644 --- a/scripts/make-rules/golang.mk +++ b/scripts/make-rules/golang.mk @@ -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: