designing-test-strategies
Skill1 starsChanged 3 months agoMITView on GitHub
Use when a feature, service, or release needs a deliberate verification plan and the team is unsure which risks belong in unit, integration, end-to-end, or non-functional tests.
In this repository65 other files it gives its agents.
- analyzing-change-blast-radiusSkill
- analyzing-developer-career-opportunitiesSkill
- art-directing-web-interfacesSkill
- assessing-developer-proficiencySkill
- auditing-dependency-riskSkill
- auditing-pixel-perfect-frontendSkill
- bootstrapping-modern-web-appsSkill
- brag-slimSkill
- building-brand-guidelinesSkill
- building-conversion-product-pagesSkill
- building-developer-career-roadmapsSkill
- building-hybrid-game-assetsSkill
- building-premium-nextjs-interfacesSkill
- building-project-showcasesSkill
- building-regression-testsSkill
- building-reliable-node-api-boundariesSkill
- choosing-application-architectureSkill
- craft-premium-motionSkill
- creating-character-sprite-pipelinesSkill
- defining-brand-strategySkill
- designing-action-combatSkill
- designing-developer-portfolio-evidenceSkill
- designing-relational-data-modelsSkill
- designing-software-boundariesSkill
- designing-ui-systemsSkill
- designing-visual-identitiesSkill
- documenting-architecture-decisionsSkill
- editing-for-clarity-and-toneSkill
- engineering-gsap-animationsSkill
- evaluating-developer-proficiencySkill
- evolving-postgres-schemas-safelySkill
- humanizing-generated-proseSkill
- implementing-reference-faithful-uiSkill
- investigating-codebase-semanticallySkill
- managing-implementation-slicesSkill
- mapping-existing-codebase-structureSkill
- naming-brands-and-productsSkill
- optimizing-frontend-motion-performanceSkill
- orchestrating-cinematic-web-motionSkill
- planning-codebase-changes-with-evidenceSkill
- planning-engineering-workSkill
- planning-launch-distributionSkill
- planning-safe-refactorsSkill
- planning-written-communicationSkill
- preparing-project-launchSkill
- profiling-postgres-query-performanceSkill
- reconstructing-images-as-threejsSkill
- reviewing-api-securitySkill
- reviewing-apple-platform-interfacesSkill
- reviewing-pull-requestsSkill
- reviewing-web-securitySkill
- selecting-working-methodsSkill
- shipping-github-vercel-changesSkill
- teaching-developer-conceptsSkill
- testing-integration-boundariesSkill
- testing-playable-gamesSkill
- testing-web-applications-end-to-endSkill
- threat-modeling-applicationsSkill
- tracing-code-execution-pathsSkill
- translating-figma-to-nextjsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Add non-functional verification only where the requirement exists: accessibility, performance, load, reliability, security, compatibility, …
- Distinctive: line 43
Before accepting the strategy, pick one critical behavior and one high-risk failure mode.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Designing Test Strategies
Core principle
Design tests around the failures that matter, then choose the smallest test scope that can provide trustworthy evidence. Coverage percentage is a diagnostic signal, not a testing strategy.
Strategy workflow
- Define the product behaviors and contracts that must remain true. Include critical user journeys, data integrity, authorization, failure recovery, and externally visible interfaces.
- Rank risks by impact and likelihood. Give the most expensive or dangerous failures the strongest independent evidence.
- Choose the lowest useful layer for each risk:
- small/unit tests for deterministic logic and edge cases;
- integration tests for serialization, persistence, process boundaries, and external dependencies;
- end-to-end tests for a small set of critical user journeys that require the assembled product.
- Add non-functional verification only where the requirement exists: accessibility, performance, load, reliability, security, compatibility, or recovery.
- Define the environment and test data needed for repeatability. Tests that depend on shared mutable state, execution order, or uncontrolled production services are weak evidence.
- Decide which gates block a change or release. A gate should have an owner, a deterministic command, and a clear failure interpretation.
- Review the portfolio for redundancy. Keep a higher-level test when it proves something a narrower test cannot.
Evidence matrix
For each important risk, record:
- behavior or contract at risk;
- failure impact;
- test layer;
- environment/dependencies;
- expected evidence;
- execution cadence;
- owner when the gate fails.
Quality checks
A strategy is weak when it:
- treats a coverage target as the primary objective;
- duplicates the same assertion across every layer;
- puts most confidence in broad UI tests;
- omits integration boundaries because unit tests are fast;
- has no explicit critical user journeys;
- cannot explain what a failed gate means.
Verification
Before accepting the strategy, pick one critical behavior and one high-risk failure mode. Confirm that each has a test at the narrowest layer that can prove it, plus broader evidence only when assembly or user workflow adds unique confidence.
References
- Google Testing Blog, How Much Testing is Enough?: https://testing.googleblog.com/2021/06/how-much-testing-is-enough.html
- Microsoft Azure Well-Architected Framework, testing strategies: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/testing
- Martin Fowler, Test Pyramid: https://martinfowler.com/bliki/TestPyramid.html
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

