From b519184a1f0aa4f104350e7eed43619e62a23b43 Mon Sep 17 00:00:00 2001 From: ila <2+ila@noreply.git.ilapage.cn> Date: Tue, 18 Aug 2026 21:33:53 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=91=BD=E4=BB=A4=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20harness.py=20=E5=AD=90=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=20(#23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Local-Development-and-Verification.-.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Local-Development-and-Verification.-.md b/Local-Development-and-Verification.-.md index e679eea..2dd3dd4 100644 --- a/Local-Development-and-Verification.-.md +++ b/Local-Development-and-Verification.-.md @@ -27,7 +27,7 @@ ### 2. 检查 Harness - 目的:验证必需文件、项目档案、Wiki 映射和归档结构。 -- 命令:`python dev_scripts/check_harness.py --strict` +- 命令:`python dev_scripts/harness.py check --strict` - 预期:输出“DevHarness 检查通过”。 - 失败检查:按错误提示检查缺失页面、未填占位符或损坏的镜像头。 @@ -41,14 +41,14 @@ ### 4. 对照线上 Wiki - 目的:确认本地 docs 是最新镜像。 -- 命令:`python dev_scripts/sync_wiki_docs.py --check` +- 命令:`python dev_scripts/harness.py sync --check` - 预期:所有映射显示“一致”。 - 失败检查:先读取线上页面;确认页面名、revision、网络和 `GITEA_URL`。 ## 常用调试方式 - 只检查 Python 语法:`python -m compileall -q dev_scripts tests`。 -- 查看一个脚本帮助:`python dev_scripts/sync_wiki_docs.py --help`。 +- 查看一个脚本帮助:`python dev_scripts/harness.py sync --help`。 - 查看未提交差异:`git diff --check` 和 `git diff`。 - 查看最近提交:`git log -5 --oneline`。 - 调试失败测试时优先运行单个测试文件,不要先修改多个模块。 @@ -68,8 +68,8 @@ DevHarness 不使用生产数据,也不需要固定业务测试数据。命令 ```powershell python -m unittest discover -s tests -v -python dev_scripts/check_harness.py --strict -python dev_scripts/sync_wiki_docs.py --check +python dev_scripts/harness.py check --strict +python dev_scripts/harness.py sync --check git diff --check git status --short ```