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

20 lines
1.0 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-014 · 可定位查询内容
* Q-DOC 文档完整性 · 正向 · P1
* 预期:用户可从目录定位查询所需内容
*/
export const meta = { tc: 'TC-DOC-014', req: 'Q-DOC', title: '可定位查询内容', type: '正向', priority: 'P1', needs: ['manual'] }
export async function run(t) {
// 自动化部分:核对关键关键词可在 README.md 用 grep 命中
const fs = await import('node:fs')
const readme = fs.readFileSync('../README.md', 'utf8')
for (const kw of ['后端', '前端', '飞梭链', 'kata', 'JNPF', '30000', '5173', 'admin']) {
t.assert(readme.includes(kw), `关键词「${kw}」可在 README.md 中检索到`)
}
t.manual([
'人工核对:',
'1) docs/README.md 「## 阅读顺序」+ 「## 文档结构」可直接定位三类读者(架构师/开发/运维)的起点;',
'2) docs/功能清单.md 「## 19 个章节」二级标题可直接 grep FL-x.y;',
'3) docs/arch/REQUIREMENT_MATRIX.md 表格按 FL/TP/模块/状态四列索引。'
].join('\n'))
}