Three Layer Testing

Run unit + integration tests after every meaningful code change, and add system/E2E only when the change has broad architectural impact. After each coding task the skill executes the unit and integration layers from fast to slow, fixes every failure with a test-first regression, and produces a PASS/FAIL summary plus a bug-triage table. The system/E2E layer is **conditionally** triggered — only when the diff touches architecture, schema, auth, middleware stack, public routes, or multi-module flows; small/localized changes stop at integration. Use after the user finishes implementing a feature, bug fix, refactor, or dependency bump; when the user explicitly asks 跑测试 / 回归 / 全量测试 / run tests / regression / test cycle; or as the final verification step before concluding any coding task. The skill auto-discovers the project's test framework (pytest, npm test, go test, cargo test, etc.), skips E2E gracefully when runtime deps are missing, and enforces "no new failures and no pass-rate regression" as the exit criteri

playerrch Updated

File contents

playerrch/cursor-agent-skills/tree/main/skills/测试/three-layer-testing commit 9f2f189f5f

Frequently asked questions

npx skillmds@latest add playerrch/three-layer-testing