testing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTesting
测试
Comprehensive testing for TEST state.
针对TEST状态的全面测试。
Instructions
操作步骤
- Run unit tests:
scripts/run-unit-tests.sh - Run API tests:
scripts/run-api-tests.sh - Run browser tests (if UI): via Claude-in-Chrome MCP
- Verify database (if data):
scripts/verify-database.sh - Collect evidence:
scripts/collect-evidence.sh - Report results (code verified, not judged)
- 运行单元测试:
scripts/run-unit-tests.sh - 运行API测试:
scripts/run-api-tests.sh - 运行浏览器测试(若有UI):通过Claude-in-Chrome MCP
- 验证数据库(若涉及数据):
scripts/verify-database.sh - 收集测试证据:
scripts/collect-evidence.sh - 报告结果(由代码验证,非LLM判断)
Exit Criteria (Code Verified)
退出标准(代码验证)
bash
undefinedbash
undefinedAll must return exit code 0
All must return exit code 0
scripts/run-unit-tests.sh
scripts/run-api-tests.sh
[ -f "/tmp/test-evidence/results.json" ]
jq '.all_passed == true' /tmp/test-evidence/results.json
undefinedscripts/run-unit-tests.sh
scripts/run-api-tests.sh
[ -f "/tmp/test-evidence/results.json" ]
jq '.all_passed == true' /tmp/test-evidence/results.json
undefinedReferences
参考资料
| File | Load When |
|---|---|
| references/unit-testing.md | Writing/running unit tests |
| references/api-testing.md | Testing API endpoints |
| references/browser-testing.md | UI testing with Chrome |
| references/database-testing.md | Database verification |
| 文件 | 加载时机 |
|---|---|
| references/unit-testing.md | 编写/运行单元测试时 |
| references/api-testing.md | 测试API端点时 |
| references/browser-testing.md | 使用Chrome进行UI测试时 |
| references/database-testing.md | 数据库验证时 |