mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
新增顶层 Makefile,统一测试入口
This commit is contained in:
parent
eb4b28c59e
commit
3363965f63
1 changed files with 21 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in a new issue