testing
Use when implementing any feature or bugfix and a test-driven approach is appropriate (red-green-refactor, seams-first), or when the user asks to find testing gaps, mutation test, or identify surviving mutants. Unit and integration tests only; browser journeys go to e2e-testing, test infrastructure to observability-quality, completion claims to gates.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- testing
- triggers
- [ "user", "model" ]
- description
- Use when implementing any feature or bugfix and a test-driven approach is appropriate (red-green-refactor, seams-first), or when the user asks to find testing gaps, mutation test, or identify surviving mutants. Unit and integration tests only; browser journeys go to e2e-testing, test infrastructure to observability-quality, completion claims to gates.
02 资源文件 5
- 参考文档modes/mutation.md6.1 KB
- 参考文档modes/tdd.md11.5 KB
- 参考文档reference/mocking.md1.4 KB
- 参考文档reference/tests.md2.2 KB
- 参考文档reference/writing-good-tests.md8.1 KB
03 SKILL.md 正文
Testing
Two modes; full detail in modes/<mode>.md. Reference:
reference/writing-good-tests.md, reference/mocking.md,
reference/tests.md.
| Mode | When | Detail |
|---|---|---|
| TDD | Implementing a feature/bugfix test-first | modes/tdd.md |
| Mutation | Finding coverage gaps via surviving mutants | modes/mutation.md |
Suite-scale assembly/audit (a suite derived from an explicit edge
inventory, not intuition): use skills/edge-coverage.
TDD — the contract
RED → verify RED → GREEN → verify GREEN → REFLECT → REFACTOR
Iron law: NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST. Code written before the test gets deleted — not kept, not adapted. Verify RED fails for the expected reason (feature missing, not a typo). REFLECT: could a wrong implementation pass? Then the test is too weak — rewrite before continuing.
Seams-first: agree WHERE to test (public interface, highest seam) before writing tests; the iron law enforces HOW. Refactoring → characterization tests first. Bug fix → failing test reproducing the bug at the right seam. Throwaway prototype → confirm with user, then skip.
Mutation testing — essentials
A mutant = small deliberate change mimicking a realistic bug. Killed = tests fail (good). Survives = tests pass → coverage gap.
Priority targets: security/auth checks, control-flow inversions, validation removal, state/constant alteration, swallowed errors. Bias toward survivors: boundary conditions, error paths, recently changed code.
Never mutate: test code/helpers/fakes, logging-only blocks, generated/vendored code. Verify each mutant compiles/loads; report killed vs survived with the mutations that exposed gaps.
04 同仓库更多 Skills
montador-de-ideias
Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.
git-github-adaptive-engineering
Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.
adaptive-agenda-calendar-routine-engine
Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.
demo
Use when demonstrating a skill in a fixture project.
duplicate-skill
Use when testing duplicate skill name detection.
duplicate-skill
Use when testing duplicate skill name detection.