testing
在运行测试以验证实现、收集测试证据或调试失败时使用。以TEST状态加载。涵盖单元测试(pytest/jest)、API测试(curl)、浏览器测试(Claude-in-Chrome)、数据库验证。所有结果均经代码验证,非LLM判断。
📖 中文导读:在运行测试以验证实现、收集测试证据或调试失败时使用。以TEST状态加载。涵盖单元测试(pytest/jest)、API测试(curl)、浏览器测试(Claude-in-Chrome)、数据库验证。所有结果均经代码验证,非LLM判断。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: testing description: "Use when running tests to validate implementations, collecting test evidence, or debugging failures. Load in TEST state. Covers unit tests (pytest/jest), API tests (curl), browser tests (Claude-in-Chrome), database verification. All results are code-verified, not LLM-judged." keywords: test, verify, pytest, jest, api, browser, evidence
Testing
Comprehensive testing for TEST state.
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)
Exit Criteria (Code Verified)
# 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
References
| 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 |