Files
ssw-mvp/docs/e2e/cases/TC-DOC-004.mjs
T
admin 3247e9fd15 init: ssw-mvp initial commit
- boot/ (Java/Maven, JNPF 7.0) — 移除旧的 boot/.git,源码直接纳入仓库
- web/ (Vue 3 + Vite + Ant Design Vue, pnpm)
- docs/, scard/, nax/
- refs/INDEX.md + refs/国标/(其余 refs/* 开源子仓库不纳入)
- 已忽略: connector_data/, jweb/, log/, web/{dist,node_modules,.pnpm}, boot/*/target/, .DS_Store, .idea, .vscode
2026-08-05 18:29:12 +08:00

21 lines
1.0 KiB
JavaScript

/**
* TC-DOC-004 · 说明所有功能
* Q-DOC 文档完整性 · 正向 · P1
* 预期:文档应说明系统的所有功能
*/
export const meta = { tc: 'TC-DOC-004', req: 'Q-DOC', title: '说明所有功能', type: '正向', priority: 'P1', needs: ['manual'] }
export async function run(t) {
// 自动化部分:核对需求基线两文档章节齐全
const fs = await import('node:fs')
const fl = fs.readFileSync('../功能清单.md', 'utf8')
const tp = fs.existsSync('../附件1:技术协议_可信数据空间_0512.docx')
t.assert(fl.includes('1.') && fl.includes('19.'), '功能清单 19 个章节齐全')
t.assert(tp, '技术协议文档存在(38 个功能点 + 非功能 + 验收标准)')
t.manual([
'人工核对:',
'1) docs/功能清单.md 19 个章节对应服务平台与连接器功能;',
'2) docs/附件1:技术协议_*.docx 38 个功能点对照实现;',
'3) docs/arch/REQUIREMENT_MATRIX.md 矩阵展示每条需求的状态与模块归属。'
].join('\n'))
}