From 87f89f5722dc231e870fb9f98ba293d27eb31f3d Mon Sep 17 00:00:00 2001 From: xfy911 Date: Sat, 6 Jun 2026 18:08:11 +0800 Subject: [PATCH] =?UTF-8?q?build(makefile):=20=E6=B7=BB=E5=8A=A0=20integra?= =?UTF-8?q?tion-test=20=E5=88=AB=E5=90=8D=E5=92=8C=20test-all=20=E7=9B=AE?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - integration-test: 作为 test 的别名,更直观 - test-all: 一键运行单元测试 + 集成测试 - 更新 .PHONY 声明 --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1ece2d7..6942674 100644 --- a/Makefile +++ b/Makefile @@ -55,11 +55,18 @@ deps: # 完整构建(先构建依赖,再构建项目) build-all: deps $(TARGET) -# 集成测试 +# 集成测试(curl + bash) test: $(TARGET) @echo "[Cocoon] 运行集成测试..." @./tests/integration_test.sh +# 集成测试别名(更直观) +integration-test: test + +# 一键运行所有测试(单元 + 集成) +test-all: unit-test test + @echo "[Cocoon] 全部测试完成 ✓" + # 性能基准 bench: $(TARGET) @echo "[Cocoon] 运行性能基准..." @@ -125,4 +132,4 @@ clean: # 重新构建 rebuild: clean all -.PHONY: all clean install uninstall rebuild deps build-all test bench unit-test test-all +.PHONY: all clean install uninstall rebuild deps build-all test integration-test test-all bench unit-test