From ee050f5df9cb445dc885d28a7303e912af29f7fa Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Fri, 7 Aug 2026 18:28:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(.gitignore):=20=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6=E5=88=B0?= =?UTF-8?q?=20=5Ftest=5Farchive/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将之前调试时遗留的 43 个测试脚本/截图/对比图/草稿文件 移动到 _test_archive/ 子目录,并加 .gitignore 规则使其不入仓。 规则: - _test_archive/ : 整个归档目录 - _test_*.png / _test_*.html : 根目录兜底 - _compare*.png / _compare*.py - _auth_*.json - _commit_msg.txt - /check_button.py _test_v6_clean.py 同时修改,所有截图路径改为 OUT_DIR = __file__ 目录, 保证未来运行测试时产物仍归档到 _test_archive/ 而不是污染根目录。 --- .gitignore | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 75750bd..021a738 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,16 @@ stub-app-projects/mp-harmony/hvigor # 内容: Playwright 截图 / 测试脚本 / 对比图 / 临时提交草稿 # 复用方式: cd _test_archive && python xxx.py _test_archive/ + +# 兜底:防止任何临时测试文件被遗漏在根目录 +# 名称以 _test_/_compare_/_auth_ 开头, 或 check_button.py 等 +_test_*.png +_test_*.html +_compare*.png +_compare*.py +_auth_*.json +_commit_msg.txt +/check_button.py # 鸿蒙签名材料 (敏感, 绝不能提交到公共 git) # 仓库有 origin (github.com/Zajd/jsysq-uniapp) 是公开仓库, 签名材料必须 gitignore stub-app-projects/mp-harmony/**/cert-profile