Logo: Test Strategy

Test Strategy

Communautéit
nahid-sparktales
test-strategy

Decide what to test and at which level before any tests get written — enumerate failure modes by consequence, give each one the cheapest level that can actually observe it, and name what is deliberately left uncovered. Use when starting testing on a feature or a codebase, when asked for a test plan or why coverage sits where it does, or when a suite is large and still missing bugs. Not for writing the tests themselves, and not for proving a finished change works.

Iwwersiicht

Editeurnahid-sparktales
Repositoryagent-dispatcher
Skill-Nummtest-strategy
Stären
58
Forks
5
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    nahid-sparktales huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Test Strategy an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/test-strategy
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/quality/test-strategy .claude/skills/test-strategy
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Test Strategy an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Test Strategy automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Test Strategy net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Test strategy

Coverage percentage measures which lines ran, not which failures would be caught. A suite can be 90% green and blind to every way the system actually breaks, because tests get written where they are easy to write — pure helpers, config objects, getters — and failures happen at boundaries.

This produces a short written allocation: risks, the level each is tested at, and what is not tested. It does not produce tests.

When this fires

Before writing a batch of tests, when planning a feature's coverage, when a suite is slow or expensive and nobody can say what it buys, or after an escaped bug when the question is why nothing caught it. It does not fire for adding one test to an existing pattern.

Procedure

  1. Enumerate failure modes, not features. For each one: what goes wrong, who notices, and what it costs — corrupted data, money moved twice, a silent wrong number, a page that will not load, a cosmetic slip. Rank by consequence times plausibility. A feature list produces even coverage; a failure list produces useful coverage.
  2. Get the history before trusting your instincts. Bug-fix commits, issue tracker, incident notes, the files that change most often. Where this system has broken before is the best available predictor of where it breaks next, and it is usually not where anyone guessed.
  3. Find the boundaries. Every place data crosses into or out of your control — HTTP, database, queue, filesystem, clock, third party, the user. Most real defects live at boundaries or in the logic that decides which side of one to take.
  4. Assign each risk the lowest level that can actually observe that failure. Lowest is cheapest and most precise — but "lowest" is bounded by observability: a bug that only exists in the interaction between two components cannot be caught by a unit test that mocks the seam it lives in. Choosing a level a mock makes blind is the most common way a green suite misses.
  5. Say what each level is for in this system, in one line each, because the words are used differently everywhere: unit (logic in isolation, no I/O), integration (real adapter against a real dependency — database, HTTP, queue), end-to-end (a whole journey through the running system). Write the definitions you are using; do not argue the pyramid.
  6. Set a budget in seconds, not in counts. How long the suite may take on a developer's machine and in CI. A budget forces the allocation to be real: if every risk lands at the top level, the suite will be slow, flaky and eventually ignored, which is worse coverage than fewer honest tests.
  7. Name what you are choosing not to test, and why. Generated code, framework behaviour, third party internals, exact copy, throwaway spikes, anything whose failure is cheap and obvious. An unlisted gap is an accident; a listed one is a decision.
  8. Name what cannot be tested automatically at all — a payment provider's production behaviour, a physical device, a rendered judgement call — and say what the manual check is and when it runs. Do not silently let the hard parts fall off the plan.
  9. State what a green suite will license you to claim. "These journeys and these boundaries were exercised" is a claim; "the feature works" is not, unless the plan actually covers it. Writing the claim down is what stops tested being reported as verified later.
  10. Check for the untestable design. If a risk cannot be reached at any level without elaborate mocking, that is a finding about the code — a boundary in the wrong place, hidden state, work done in a constructor. Report it as a design finding rather than building the elaborate mock.
  11. Write the allocation down as a table a reviewer can argue with: risk, level, what would have to be true for it to be caught, and its owner if it is manual.

Checklist

  • Failure modes listed with consequence, not a feature list
  • Repository and issue history consulted for where breakage actually happened
  • Boundaries identified and each one assigned a level
  • Every risk placed at the lowest level that can still observe it
  • Level definitions written for this system
  • Runtime budget stated for local and CI
  • Deliberate non-coverage listed with reasons
  • Manual-only checks named with an owner and a trigger
  • The claim a green suite supports is written down
  • Untestable-by-design findings raised rather than mocked around

Failure handling

  • Asked for a coverage percentage target — give the allocation, and say which risks are covered and which are not. A number can be met without touching a single risk on the list.
  • No history available (new code, fresh repository) — say so, and lean on boundaries and on consequence ranking instead. Do not present intuition as evidence.
  • Everything looks high risk — rank anyway, by blast radius. A plan that calls all of it critical allocates nothing.
  • Existing suite is large and unloved — measure before proposing: runtime, failure history, how often a red run found a real bug. Deleting tests is a real deletion of someone else's work: recommend it with the evidence and ask before removing anything.
  • The plan implies changing production code to be testable — that is a legitimate outcome, but it is a separate change with its own review. Name it, do not smuggle it in.

Evidence to report

The risk list with each item's assigned level and the reason that level can see it; the level definitions used; the runtime budget; the explicit not-covered list; the manual checks with owners; and the single sentence saying what a green run of this plan does and does not prove. A plan without a not-covered list is not finished.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Test Strategy?

Decide what to test and at which level before any tests get written — enumerate failure modes by consequence, give each one the cheapest level that can actually observe it, and name what is deliberately left uncovered. Use when starting testing on a feature or a codebase, when asked for a test plan or why coverage sits where it does, or when a suite is large and still missing bugs. Not for writing the tests themselves, and not for proving a finished change works.

Firwat Test Strategy op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Test Strategy besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Test Strategy an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/test-strategy an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Test Strategy benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Test Strategy benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Test Strategy domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Test Strategy gratis?

Jo. nahid-sparktales huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇