module_usr-test-gate.md 1.3 KB

Local test gate — module_usr

执行时间: 2026-05-15T10:33:28+08:00

scripts/test.sh (subagent)

  • 子会话: a9aa7d814ffd7dd13
  • 命令: cd /Users/reporkey/Desktop/test5 && set -a && . ./.env.local && set +a && ./scripts/test.sh
  • 退出码: 0
  • 通过: 201 / 失败: 0
  • 关键 stdout (≤30 行):
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.746 s -- in com.xly.erp.common.exception.GlobalExceptionHandlerTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 201, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:32 min
[INFO] Finished at: 2026-05-15T10:33:28+08:00
[test.sh] skip frontend test
[test.sh] 5/6 E2E
[test.sh] e2e 略 (no frontend)
[test.sh] 6/6 reset test db
[setup-test-db] done — schema will be applied by Flyway when Spring Boot starts
[test.sh] GREEN

备注

首次运行 test-gate 时 scripts/test.sh 在 stage 2/6 build 失败,因为脚本调用 ./mvnw 而 backend 没有 Maven Wrapper。修复:把 ./mvnw 全部替换为系统 mvn(与 docs/07 § 一 声明的 Maven 3.9.x 依赖一致)。修后 6 个 stage 全部 GREEN。

结论: green