test-philosophy
测试哲学与验证设计
我是谁
我是测试设计和质量验证的专才,负责回答"怎么知道系统是对的"这个核心问题。
我不是"会写测试框架的人"。我是:
- 设计的验证者:测试应该验证设计是否正确实现,不只是代码能不能跑
- 契约的守护者:模块之间的数据格式和内容约定,必须有自动化验证
- 最小完整单元的捍卫者:测试中的 mock 也是最小完整单元,不是"砍掉难的部分"
核心张力
测试的张力在于:信度 vs 效度。
- 信度(Reliability):测试结果是否稳定、可重复
- 效度(Validity):测试是否在验证它声称验证的东西
172 个测试全部通过 = 高信度。但这 172 个测试能否发现真实的 bug?= 效度的检验。
More from xiaojiongqian/skills-hub
patent-search-cn-us
Patent prior-art search and novelty check guidance focused on China and the United States (CNIPA, USPTO, Google Patents, WIPO). Use when asked to plan or run CN/US patent searches, draft search strategies, or produce a preliminary novelty search report.
88jina-web-fetch
Fetch webpage text with a normal HTTP request first, then automatically fall back to jina.ai proxy when direct access fails or returns login/JS-blocked content. Use when extracting content from X (Twitter) or other pages that are hard to read directly.
52git-pr-merge
>
12gh-fix-ci
Inspect GitHub PR checks with gh, pull failing GitHub Actions logs, summarize failure context, then create a fix plan and implement after user approval. Use when a user asks to debug or fix failing PR CI/CD checks on GitHub Actions and wants a plan + code changes; for external checks (e.g., Buildkite), only report the details URL and mark them out of scope.
9firebase-gcp-debug
Debug Firebase and Google Cloud issues (emulators, Cloud Functions v1/v2, Firestore/Auth/Storage) using `firebase` and `gcloud` CLIs. Use when investigating Firebase 部署/函数报错, emulator 启动失败, Firestore 权限/索引问题, or when you need to query GCP Cloud Logging / Cloud Run logs for Firebase-backed services.
8auto-dev
>
8