Files
ssw-mvp/docs/e2e/cases/TC-DOC-003.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

22 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* TC-DOC-003 · 包含使用必需信息
* Q-DOC 文档完整性 · 正向 · P1
* 预期:文档包含使用系统所必需的全部信息
*/
export const meta = { tc: 'TC-DOC-003', req: 'Q-DOC', title: '包含使用必需信息', type: '正向', priority: 'P1', needs: ['manual'] }
export async function run(t) {
// 自动化部分:核对 README.md「本地运行要点」含端口/账号/启动命令
const fs = await import('node:fs')
const readme = fs.readFileSync('../README.md', 'utf8')
t.assert(/30000/.test(readme), 'README 含后端端口 30000')
t.assert(/5173/.test(readme), 'README 含前端端口 5173')
t.assert(/admin/.test(readme) && /123456/.test(readme), 'README 含默认账号 admin/123456')
t.manual([
'人工核对使用文档完整性:',
'1) 部署 —— docs/README.md「本地运行要点」;',
'2) 接口 —— 后端 Controller 的 Java 注释 + docs/JNPF_BACKEND_GUIDE.md;',
'3) 操作 —— docs/tds/REQUIREMENTS.md、docs/tdc/REQUIREMENTS.md;',
'4) 异常处理 —— docs/tdd/P1P2_CHAIN_K8S_REPORT.md「回退机制」章节。'
].join('\n'))
}