Logo di Test Plan

Test Plan

Community
kazdenc
test-plan

Write a test strategy covering what to test, coverage targets, and testing pyramid distribution. Use when user says "test plan", "testing strategy", "what should I test", "test coverage", "how to test this", or needs to plan testing for a feature or project before writing tests.

Panoramica

Autorekazdenc
Repositorybuilder-skills
Nome della skilltest-plan
Stelle
46
Fork
5
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da kazdenc su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Test Plan in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/test/test-plan
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kazdenc/builder-skills.git /tmp/builder-skills
mkdir -p .claude/skills
cp -r /tmp/builder-skills/.claude/skills/dev/test/test-plan .claude/skills/test-plan
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Test Plan in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Test Plan non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Test Plan non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Test Plan

Write a test strategy that answers two questions clearly: what deserves testing and how much testing is enough. Everything else is execution detail.

Step 1: Understand What's Being Tested

Before planning any tests, nail down what you're working with. Read the code or requirements. If the user hasn't provided enough context, ask.

InputQuestionWatch out for
Code / FeatureWhat does this do? What are the inputs and outputs?Planning tests for code you haven't read
Critical pathsWhich flows would break the product if they failed?Treating all code paths as equally important
DependenciesWhat external systems, APIs, or services does it touch?Ignoring side effects and integrations
Edge casesWhat unusual inputs or states could occur?Only testing the happy path

If existing tests, specs, or prior conversations exist, pull from them. Don't invent context.

Step 2: Apply the Testing Pyramid

Distribute test effort deliberately. The pyramid exists because fast feedback loops matter more than exhaustive simulation.

LayerShareWhat to testCharacteristics
Unit tests~70%Pure functions, utilities, hooks, reducers, transformersFast, isolated, many. Test one thing per test. Mock nothing or mock only external I/O.
Integration tests~20%Component interactions, API routes, database queries, service boundariesTest contracts between units. Verify that pieces work together correctly. Slower, fewer.
E2E tests~10%Critical user flows only: signup, checkout, core CRUDSlow, flaky-prone, expensive. Reserve for flows where failure = revenue loss or user churn.

These ratios are targets, not rules. A utility library might be 95% unit tests. A UI-heavy app might lean harder on integration tests. Adjust with intent.

Step 3: Decide What to Test

Map each piece of functionality to the right test type. Use this decision table.

What you're testingTest typeWhy
Business logic, calculations, data transformsUnit testFast feedback, easy to cover all branches
User-facing flows (form submit, navigation)Integration or E2ENeed to verify real DOM and event behavior
Edge cases (null inputs, empty arrays, boundaries)Unit testCheap to write, high defect-prevention value
Visual appearance and layoutSnapshot test (use sparingly)Brittle; prefer visual regression tools for critical UI
API request/response contractsIntegration testVerify serialization, status codes, error shapes
Error handling and failure modesUnit + integrationUnit for thrown errors, integration for error boundaries and fallback UI
State management (stores, reducers)Unit testPure logic, deterministic, fast to test
Third-party integrationsIntegration test with mocksVerify your code handles their API correctly

Step 4: Define Coverage Targets

Aim for meaningful coverage, not 100%. Chasing full coverage leads to brittle tests that test implementation details.

Coverage targetWhen it makes sense
90%+Shared libraries, payment logic, auth flows — code where bugs have outsized impact
70-80%Application code, feature modules — good balance of safety and velocity
50-70%Rapidly prototyping, exploratory features — cover critical paths, skip the rest
Skip coverage metricsOne-off scripts, throwaway prototypes, generated code

Focus coverage on:

  • Code with high cyclomatic complexity (many branches)
  • Code that handles money, auth, or user data
  • Code that's changed frequently (high churn = high risk)

Step 5: Choose Tools

Pick tools that match your stack. Don't over-engineer the test setup.

PurposeToolNotes
Unit testsVitestFast, ESM-native, Jest-compatible API. Preferred for modern projects.
Component testsTesting Library (@testing-library/react)Test behavior, not implementation. Queries by role, text, label.
User interaction@testing-library/user-eventSimulates real user events (click, type, tab). Prefer over fireEvent.
API mockingmsw (Mock Service Worker)Intercepts at the network level. Works in tests and browser dev.
E2E testsPlaywrightCross-browser, reliable, good DX. Prefer over Cypress for new projects.
Visual regressionPlaywright screenshots or ChromaticUse only for design-critical UI. Not a substitute for functional tests.

Output Format

Deliver the test plan as a prioritized list of test cases grouped by type.

# Test Plan: [Feature / Component Name]

## Unit Tests (priority order)
- [ ] [function/module] — [what behavior to verify]
- [ ] [function/module] — [edge case to cover]

## Integration Tests (priority order)
- [ ] [interaction/flow] — [what contract to verify]
- [ ] [API route] — [request/response shape to verify]

## E2E Tests (priority order)
- [ ] [critical user flow] — [what end-to-end behavior to verify]

## Coverage Notes
- Target: [X%] for [reason]
- Skip: [what's deliberately not tested and why]

## Open Questions
- [Anything unresolved about test approach]

Anti-Patterns to Avoid

Anti-patternProblemInstead
Testing implementation detailsTests break on every refactor, provide no confidenceTest inputs/outputs and observable behavior
Mocking everythingTests pass but nothing actually works togetherMock only external I/O; let units collaborate
Snapshot overuseGiant snapshots nobody reviews, approved blindlyUse snapshots only for small, stable structures
Testing the frameworkVerifying that React renders or that Vitest assertsTest your logic, not the tool's behavior
100% coverage as a goalDiminishing returns, brittle tests, wasted timeCover critical paths thoroughly, accept gaps in trivial code
Copy-paste test casesHard to maintain, masks missing abstractionsUse test.each() or parameterized tests for repetitive cases

Domande frequenti

Cosa fa la skill IA Test Plan?

Write a test strategy covering what to test, coverage targets, and testing pyramid distribution. Use when user says "test plan", "testing strategy", "what should I test", "test coverage", "how to test this", or needs to plan testing for a feature or project before writing tests.

Perché usare Test Plan su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Test Plan è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Test Plan in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/test/test-plan. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Test Plan?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Test Plan?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Test Plan: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Test Plan è gratuita?

Sì. È pubblicata su GitHub da kazdenc con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇