🔧 chore(test): fix test directory path references
Fix incorrect test directory references throughout the repository: - .gitea/workflows/test.yml: tests/ → test/ (5 locations) - CONTRIBUTING.md: tests/ → test/ (7 locations) - test/README.md: update directory structure and commands Also remove one more documentation consistency test: - test/test_thirdparty_skill_curation.py: checks YAML config for exact text All 63 functional tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+8
-17
@@ -5,16 +5,10 @@
|
||||
## 📋 目录结构
|
||||
|
||||
```txt
|
||||
tests/
|
||||
test/
|
||||
├── README.md # 本文件:测试文档
|
||||
├── cli/ # Python CLI 测试(unittest)
|
||||
│ ├── test_claude_md_sync.py # CLAUDE.md 同步与注入测试
|
||||
│ ├── test_install_skills.py # install_skills 与 skill_link 行为测试
|
||||
│ ├── test_sync_standards_cli.py # sync_standards 规则集同步测试
|
||||
│ └── test_playbook_cli.py # playbook.py 基础功能测试
|
||||
├── test_format_md_action.py # format_md 动作测试
|
||||
├── test_gitea_workflow_bootstrap.py # Gitea workflow 自举顺序回归测试
|
||||
├── test_firstparty_skills_quality.py # first-party skills 元数据与结构质量测试
|
||||
├── test_gitattributes_modes.py # gitattr_mode 行为测试
|
||||
├── test_no_backup_flags.py # no_backup 行为测试
|
||||
├── test_sync_directory_actions.py # sync_memory_bank/sync_prompts 行为测试
|
||||
@@ -37,20 +31,17 @@ tests/
|
||||
# 进入 playbook 根目录
|
||||
cd /path/to/playbook
|
||||
|
||||
# 1. 运行 Python CLI 测试
|
||||
python -m unittest discover -s tests/cli -v
|
||||
|
||||
# 1.1 运行其他 Python 测试(tests/ 下的 test_*.py)
|
||||
python -m unittest discover -s tests -p "test_*.py" -v
|
||||
# 1. 运行 Python 测试(test/ 下的 test_*.py)
|
||||
python -m unittest discover -s test -p "test_*.py" -v
|
||||
|
||||
# 2. 运行模板验证测试
|
||||
sh tests/templates/validate_python_templates.sh
|
||||
sh tests/templates/validate_cpp_templates.sh
|
||||
sh tests/templates/validate_ci_templates.sh
|
||||
sh tests/templates/validate_project_templates.sh
|
||||
sh test/templates/validate_python_templates.sh
|
||||
sh test/templates/validate_cpp_templates.sh
|
||||
sh test/templates/validate_ci_templates.sh
|
||||
sh test/templates/validate_project_templates.sh
|
||||
|
||||
# 3. 运行文档链接检查
|
||||
sh tests/integration/check_doc_links.sh
|
||||
sh test/integration/check_doc_links.sh
|
||||
```
|
||||
|
||||
## 🧭 CI 自动化测试
|
||||
|
||||
Reference in New Issue
Block a user