fix: 批量匹配跳过画像待补录教师 + render-html 按行重建 + 金标准 fixtures 业务化(P0+P1)
- run_match 新增 skip_incomplete:批量缺省跳过画像不完整教师并记录 skipped,指定单教师仍 PROFILE_INCOMPLETE;汇总页出"画像待补录"行 - render-html 补 --report-id 行上下文(inputMapping $row.$pk),CLI 容错解析回退最近 10 份 - report_service 日志改容错 _log(),修复未 setup 时单跑测试崩溃的顺序依赖 - fixtures 替换为教师画像/赛道/期望结论金标准样例,新增 sample_tracks.json - 新增 4 个批量跳过用例(314 项,除 3 个已知 jsonschema 环境失败外全绿) - tests/README 增补本机无共享 runtime 的测试方式;TUTORIAL/ACTIONS.md 同步表述
This commit is contained in:
24
tests/fixtures/expected_response.json
vendored
24
tests/fixtures/expected_response.json
vendored
@@ -1,6 +1,22 @@
|
||||
{
|
||||
"success": true,
|
||||
"data": {
|
||||
"status": "ok"
|
||||
}
|
||||
"season": "2027",
|
||||
"teacher_count": 2,
|
||||
"track_count": 3,
|
||||
"expectations": [
|
||||
{
|
||||
"teacherName": "张教授",
|
||||
"topTrack": "面上项目·光伏材料",
|
||||
"tier": "强烈推荐",
|
||||
"matchPct": 100,
|
||||
"reasonsContains": ["命中需求标签", "优先资助方向命中"]
|
||||
},
|
||||
{
|
||||
"teacherName": "王讲师",
|
||||
"topTrack": "青年项目·农村经济",
|
||||
"tier": "可尝试",
|
||||
"matchPct": 70,
|
||||
"excludedContains": ["面上项目·光伏材料", "重点项目·量子计算"]
|
||||
}
|
||||
],
|
||||
"disclaimerContains": "仅供参考"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user