任务:作为测试负责人,执行除编译之外的自动化测试(TDD 多智能体研发测试调度 skill + 软件测试专家团) 触发:定时自动化
执行测试任务;无人值守,按默认(离线白名单)执行,未派发 / 未联网 / 未 push。
b32d99e181(22:38,docs(tdd) 提交)。9daeaa6604(18:28)的 backend 源码变更:git diff --name-only 9daeaa6604 HEAD -- cfc-backend/ = 12 个文件,其中 10 个主源码(HealthDimensionController / DimensionRegistryService / IndicatorService / DatabaseInitializer / DimensionCodeConstants / DimensionNode / DanKnowledgeBaseService / LanggraphSyncService + schema.sql / migrate_dimension_unified.sql)+ 2 个测试文件。aa6ccb2dd(21:07)统一维度体系 P0 增量合并合入 cfclub,即本轮相对全量基线唯一的主源码变更。mvn test,不得只跑契约子集。本运行据此执行了完整后端套件(首次包含统一维度合并)。| 项 | 值 | 状态 |
|---|---|---|
| Maven | 3.9.9@/d/tools/apache-maven-3.9.9 |
✅ |
| JDK | 1.8.0_25@/d/jdk1.8.0_25 |
✅ |
| Node | v22.22.2 | ✅ |
| MySQL | 192.168.16.251:3306 |
✅ OPEN |
| loadavg | 3.46(2/5 核) | ✅ 健康 |
| frontend / cfc-web node_modules | 均存在 | ✅ |
| 命令 | mvn -o -DskipTests=false -Dtest='!TestRoles' test |
P0 skipTests=true 以 -DskipTests=false 覆盖 |
| 套件 | 结果 | 说明 |
|---|---|---|
| cfc-frontend jest | ✅ 296/296 全绿,14/14 suites(exit 0,~54s) | 连续第 N 轮零漂移,无回归 |
| cfc-web jest | ✅ 90/90 全绿,12/12 suites(exit 0,~106s) | 稳定,无回归 |
cfc-backend mvn test(全量,排除 TestRoles) |
⚠️ 1698 run / 1560 通过 / 71 失败 / 63 错误 / 4 跳过 = 134 未通过(7.8%),BUILD FAILURE(MVN_EXIT=1,49m42s) | testCompile BUILD SUCCESS(无 P0 编译回归);219 份 surefire 落盘(TestRoles 排除) |
| cfc-langgraph pytest / Playwright e2e / 根级 tests jest | ⛔ 严格标「未实测」 | 缺依赖(无 .venv / httpx 缺失 / 浏览器未下载)+ 未授权联网 |
.tdd/analyze_surefire.py,219 类解析)| 类别 | 用例 | 类 | 性质 |
|---|---|---|---|
| ASSERT | 60 | 23 | 真实断言 mismatch |
| NPE | 28 | 11 | 真实 NPE(代码/桩) |
| OTHER | 11 | 2 | CfCommission 分润缺口等 |
| CTX_LOAD | 9 | 1 | ⚠️ 陈旧构建产物(见 §5) |
| ENV_DB_CONN | 8 | 3 | 环境噪声(DB 连接池),本运行偏低 |
| OTHER_EXC | 7 | 5 | platform_fee 越界等 |
| MOCK_MISUSE | 6 | 2 | Mockito 误用(测试 bug) |
| TEST_SETUP | 5 | 2 | 桩字段过期(测试 bug) |
| 合计 | 134 | 41 |
java.io.FileNotFoundException: class path resource [com/etotem/cfc/controller/DimensionRegistryTreeTest.class] cannot be opened because it does not exist。aa6ccb2dd 中被从 controller/ 迁移到 integration/controller/(find 确认现位于 cfc-backend/src/test/java/com/etotem/cfc/integration/controller/DimensionRegistryTreeTest.java),但旧位置 target/test-classes/.../controller/DimensionRegistryTreeTest.class 作为孤儿 .class 残留(Maven 不删除已移动的编译产物)。surefire 仍尝试实例化旧路径 → 上下文加载失败 → 9 例 CTX_LOAD。mvn test(无 clean)会持续污染,CI 须用 mvn clean test。9daeaa6604,1664 run / 1538 通过 / 71F / 51E / 4S = 122 未通过)| 类 | 现象 | 性质 |
|---|---|---|
MindFortuneControllerTest |
$.code expected:<401> but was:<400> |
鉴权码契约 mismatch(真实,历史遗留) |
GuideModuleIntegrationTest |
DataIntegrityViolationException / platform_fee out of range |
数据完整性(真实) |
CfCommissionServiceSettleTest ×8 |
WantedButNotInvoked octopusEffectRecordMapper.insert / cfBalanceService.earnByRule |
分润记账缺口(真实) |
ProductOrderServiceFulfillmentMultiModeTest |
InvalidUseOfMatchers(Mockito 误用)/ NPE |
测试 bug |
TaskProgressUpdateTest |
NoSuchFieldException: platformPointsService |
桩字段过期(测试 bug) |
HealthDimensionControllerTest |
expected:<500> but was:<200>(B-18,缺失 memberId) |
校验缺口(真实,维度合并相关但非新引入) |
skipTests=true 以 -DskipTests=false 覆盖。mvn clean test)、Mockito 误用、桩字段过期——均属测试侧可自闭环。mvn clean test,消除陈旧 .class 污染(§5)。产物:本报告 docs/tdd/test/automation-run-2026-11-06-0004.md + .tdd/backend-run-20261106-0004.log + 219 份 surefire + .tdd/triage-20261106-0004.txt。未 push(.tdd/ 本地私有;docs/tdd 报告待人工/授权推送)。