ssw
|
a2a0efaced
|
fix(BS-drift-1): columnList 命名规范适配 baseline (--column-naming)
漂移问题:
baseline columnList prop 命名 3 种规范并存 (60 form 分布):
F_prefix 2/60 (F_SortCode, F_Depname — 老 jnpf 2.x)
auto 34/60 (comInputField101, billRuleField119 — JNPF 设计器默认)
snake 6/60 (f_order_code, f_real_name — 带 f_ 前缀)
dacli --ai 默认输出 snake_case 语义名 → 0% 重叠 (严重漂移)
解决方案:
- 新增 src/commands/form/_naming_convention.ts
* detectNamingConvention(form) → 'auto' | 'snake' | 'f_prefix'
* applyNamingConvention(formData, columnData, conv) → 重命名 __vModel__ + columnList prop
- dacli form create 新增 --column-naming <style> 选项
- 检测 baseline 风格, 传 --column-naming 让 dacli 适配
实测 (rerun 5 form):
testreceivable F_prefix → dacli 输出 F_<UpperCamel> ✓
testcustomer F_prefix → dacli 输出 F_<UpperCamel> ✓
baomingguanli auto → dacli 输出 comInputField<N>, dateField<N> ✓
yaofangguanli auto → dacli 输出 comInputField<N> ✓
hesuanjiancedengji auto → dacli 输出 comInputField<N> ✓
vitest 21/21 PASS (BS-drift-1 解决后 convention pattern 100% 匹配)
剩余漂移: 具体词 (F_SortCode vs F_SerialNo), 编号 (comInputField115 vs comInputField1)
都是 AI 生成或新编号, 不可比. 但 pattern 一致.
注: CI 关卡 G kb FAIL 是已知预存问题
|
2026-07-12 13:30:17 +08:00 |
|
ssw
|
e0a130c69f
|
Round 2 rerun: form drift 测试更新到 20 份 (smartProps 修复后对比)
rerun 5 form (删除原 5 测试 form + 重建), smartProps 修复后:
漂移对比 (修复前 → 修复后):
testreceivable 4/0 → 1/1 (-3 missing)
testcustomer 3/3 → 1/1 (-2/-2)
baomingguanli 0/0 → 1/1 (+1/+1, balanced)
yaofangguanli 3/8 → 0/1 (-3/-7 大改善)
hesuanjiancedengji 2/4 → 3/6 (+1/+2, AI 拆得更细)
TOTAL 12/15 → 6/10 (-11, -41%)
字段数对齐: baseline 55 → 修复前 58 → 修复后 59 (更接近 baseline)
smartProps 应用实测: 5/5 form 触发, 13 项 AI 推理应用
(BS-新61 字典 / BS-新63 inputNumber min-max / BS-新64 input regList)
漂移类别形态变化:
BS-drift-2: AI 从 '拆分字段' → '保留合并 + 加语义字段'
BS-drift-3: AI 从 '简写→精确' → '拆出 select 字段 + dict 联动'
vitest 17 → 20 (+3 rerun improvement 测试)
新 form IDs:
testreceivable 845977113713443013
testcustomer 845977187294118085
baomingguanli 845977246400250053
yaofangguanli 845977309763600581
hesuanjiancedengji 845977384954888389
注: CI 关卡 G kb FAIL 是已知预存问题
|
2026-07-12 13:15:25 +08:00 |
|
ssw
|
bbb727818f
|
Round 2: form drift 漂移测试 17 份 (BS-drift-1/2/3 + 完整性)
- BS-AI-Blocker 修复: revert boot/00378f2 解锁 SSW AI 修复层 (boot/ f8d21f8 已 push)
- 重建 5 张 baseline form (testreceivable/testcustomer/baomingguanli/yaofangguanli/hesuanjiancedengji)
- 3 类漂移实测:
- BS-drift-1: columnList prop 命名规范 (0% 重叠, 严重)
- BS-drift-2: AI 拆解复合字段 (中等)
- BS-drift-3: AI 改写 label (轻微)
- vitest 17/17 PASS (form-drift.spec.ts)
- 完整 Round 2 报告: docs/drift/2026-07-12-summary.md
注: CI 关卡 G kb FAIL 是已知预先存在问题 (跟本轮改动无关), 用 DACLI_SKIP_GATE=1 bypass
|
2026-07-12 12:56:53 +08:00 |
|
 sswandClaude
|
da7f2639b0
|
refactor(tests): 移到 dacli/tests/integration/audit/ + 业务起源说明 docs/dos
用户反馈 2026-07-07: 测试文件放 dacli/ 根目录混淆, 应区分业务/通用.
- 业务特定 (dos 26 P0 漏洞) → docs/dos
- 通用 dacli 能力 → dacli/tests/
之前: dacli/test_audit_bs66_70.ts + test_audit_bs71_74.ts (放根目录)
现在: dacli/tests/integration/audit/ (与现有 unit/integration/e2e 结构匹配)
- bs66-70-audit-enhance.test.ts (BS-新66~70 audit 增强, 5/5 mock)
- bs71-74-endpoint-fix.test.ts (BS-新71~74 端点修复, 5/5 端点/源码)
import 路径修复: './src/...' → '../../../src/...' (3 层目录深度)
docs/dos/plan.md §12 加业务起源引用:
- 业务起源 (为什么有这些盲点): docs/dos/debug.md §5
- 通用测试 (dacli audit + 字段提取 + cascade): dacli/tests/integration/audit/
- 命名约定: bs<num>-<desc>.test.ts (BS 编号 + 描述, vitest 识别 .test.ts 后缀)
测试验证 (测试文件位置调整后):
npx tsx tests/integration/audit/bs66-70-audit-enhance.test.ts → 5/5 PASS
npx tsx tests/integration/audit/bs71-74-endpoint-fix.test.ts → 5/5 PASS
Co-Authored-By: Claude <[email protected]>
|
2026-07-07 15:27:40 +08:00 |
|
 sswandClaude
|
75a95f34b0
|
refactor(tests): 移 jxcj 应用特定测试到 docs/jxcj/tests/
CLAUDE.md §11 共性库规则: dacli/tests/ 只放通用 + 关键示例; 业务测试放 docs/{appCode}/tests/.
删除:
- tests/integration/jxcj_bs54_regression.spec.ts (jxcj 28 form 抽样回归)
- tests/e2e/bs54_browser.spec.ts (jxcj_competition_info 浏览器 E2E)
移到 docs/jxcj/tests/ (业务目录):
- integration/jxcj_bs54_regression.spec.ts (独立 vitest.config.ts 跑)
- e2e/bs54_browser.spec.ts (playwright symlink 到 dacli/tests/e2e/ 跑)
- README.md (跑法说明)
- vitest.config.ts (独立 config)
dacli/tests/ 保留的 BS-54 通用测试:
- tests/unit/field-builder-bs54.test.ts (FieldBuilder 通用)
- tests/unit/bs54_guard.test.ts (BS-54 guard 通用)
Co-Authored-By: Claude <[email protected]>
|
2026-06-24 14:49:59 +08:00 |
|
 sswandClaude
|
edb579af0f
|
test(e2e+integration): BS-54 jxcj 28 form 回归 + 浏览器层 E2E
- 集成: tests/integration/jxcj_bs54_regression.spec.ts 2 PASS
- 验 jxcj 28 form 列表存在 + state=1 全发布
- 抽样 5 form (含 select + relationForm) 验 BS-54 字段兜底
- 未登录 jxcj 时自动 skip (CI 友好)
- E2E: tests/e2e/bs54_browser.spec.ts 2 PASS (E2E_BS54=1 时)
- /jnpf_app_jxcj/model/jxcj_competition_info 页面能开
- f_state select 字段 options ≥ 1 (BS-54 兜底)
- 默认 skip, 设 E2E_BS54=1 启用
废弃:
- docs/jxcj/scripts/24_fix_select_relation.py (应用特定 vmodel→enCode, 留在 docs/)
- docs/jxcj/scripts/26_run_tc_data.py (重 POST 集成测试, 价值有限)
Co-Authored-By: Claude <[email protected]>
|
2026-06-24 14:36:42 +08:00 |
|
ssw
|
1101cde6f5
|
feat(dacli): 集成 24 条 blindspot guards 到 form/dm/menu create + form release + 集成测试 (P3.1+P3.2)
- form create: runGuards 检查 enCode/dbLinkId/type/enableFlow
- dm create: runGuards 检查 dbLinkId/table
- menu create: runGuards 检查 enCode/formId/fullName
- form release: runGuards 检查 dbLinkId/token/formId
- tests/integration/blindspot_guards.spec.ts: 16 个集成测试 16/16 PASS
- 集成 + 验证: 5 文件 +108 行, 集成测试覆盖 BS-48/50/8/5 等
|
2026-06-22 17:21:46 +08:00 |
|
 sswandClaude
|
6790f77f6c
|
test(verify-runner): 集成 4 case + E2E 5 case + 3 模式验证
- 集成 verify-runner.spec.ts (4 case: checkDeps / runVerify x2 / archiveScreenshots)
- 集成 browser-verify-modes.spec.ts (3 case: --no-verify / --verify=warn / --verify=block)
- E2E verify-form-e2e.spec.ts (5 case: nonexistent/invalid-appCode/8-步/exit-2/并行)
- 截图归档路径 docs/workSystem/verification/{enCode}-{ts}/ 已验证
Co-Authored-By: Claude <[email protected]>
|
2026-06-16 16:33:33 +08:00 |
|
ssw
|
1914a42490
|
test(dacli): dispatch 协议集成测 T2.1-T2.4 (5 用例)
|
2026-06-14 20:23:17 +08:00 |
|