From 3363965f635b3dc0da28b30b566b72cf1186a594 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Wed, 2 Sep 2026 19:48:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B6=E5=B1=82=20Makefile?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E6=B5=8B=E8=AF=95=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..0fe920b29 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +.PHONY: test test-fast test-python test-java test-web help + +help: + @echo "make test-fast - run all fast unit tests (default)" + @echo "make test - alias for test-fast" + @echo "make test-python - pytest in main/xiaozhi-server" + @echo "make test-java - mvn test in main/manager-api" + @echo "make test-web - npm run test:unit in main/manager-web" + +test: test-fast + +test-fast: test-python test-java test-web + +test-python: + cd main/xiaozhi-server && python -m pytest -x -q + +test-java: + cd main/manager-api && mvn -B -q test -DfailIfNoTests=false + +test-web: + cd main/manager-web && npm ci --no-audit --no-fund && npm run test:unit