Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

test-case-authoring

БесплатноБез исполняемых скриптовНе проверен

Write the test plan and test cases for a single work item: every acceptance criterion traced to a case, each case with test data, steps, an observable…

rampstackcoот rampstackco★ 1 143 звезды на GitHub

Об этом скилле

Test Case Authoring

Write the tests for one work item so the QA notes on the ticket have real content and the fix verification on a bug names a real test. Tool-agnostic: works with any test runner, any tracker, and any test management tool.


When to use

  • A story is ready and its acceptance criteria need test cases
  • A bug fix needs a named verification test and a regression set
  • QA notes on a ticket say "test it" and nothing else
  • Checking whether a set of acceptance criteria is testable at all
  • A spike needs an exploratory charter instead of pass/fail cases
  • A coding agent will run the tests and needs to know what evidence to return

When NOT to use

  • Site-wide QA sweeps before a launch or after a deploy (use qa-testing)
  • Writing the acceptance criteria themselves (use ticket-authoring, or pm-spec-writing for the spec behind them)
  • Auditing a whole site for accessibility (use accessibility-audit)
  • Reviewing the code change (use code-review-web)
  • Deciding go or no-go for a release (use release-management; for a first launch or cutover, use launch-runbook)
  • Deciding which items deserve testing effort first (use backlog-triage)

Required inputs

  • The work item: type, title, acceptance criteria or repro steps, QA notes so far
  • The spec or PRD it links to, if any
  • The environments available (local, staging, production-like)
  • The test levels the codebase supports (unit, integration, end-to-end, manual)
  • Known risk areas: what else shares this code path

If the acceptance criteria are not checkable, stop and send them back. Tests written against a vague criterion inherit the vagueness.


The framework: six parts

A test plan is a contract. It says what will be checked, how, at which level, and what a pass leaves behind.

1. From acceptance criteria to tests

Each acceptance criterion maps to at least one test case. Each test case traces back to exactly one criterion or one named risk.

  • An untested criterion is a defect in the plan. Nobody will check it.
  • An untraceable test is a defect too. Either it covers a risk nobody wrote down (name the risk) or it is noise (cut it).

Record the mapping in a traceability matrix. See references/traceability-matrix-template.md.

2. Test case anatomy

Field What goes in it
ID Stable, unique within the item, e.g., TC-01
Title What is being checked, in a few words
Traces to One acceptance criterion or one named risk
Precondition State before step 1: account, role, data, flags
Test data Exact values. "A valid email" is weaker than [email protected].
Steps Numbered, one action each
Expected result Observable: a value, a message, a state, a status code
Environment Where it runs
Level Unit, integration, end-to-end, or manual
Automation status Automated, to automate, or manual by design (with reason)

Expected results are observable. "Works correctly" is not a result. "The total shows $42.00 and the order status is paid" is. See references/test-case-template.md.

3. Coverage classes

Class Question it answers
Happy path Does the main flow work with normal input?
Boundary and edge What happens at limits: zero, one, max, empty, very long, time zones?
Negative and error What happens with bad input, missing permissions, or a failed dependency?
Regression What else uses this code path, and is it still intact?
Accessibility smoke Keyboard reachable, labeled, announced, contrast holds?
Performance smoke Does it stay within the budget under realistic data?

Mandatory classes depend on the ticket type:

  • Bug: the failing case (the repro, as a test) plus regression. Edge cases from the QA notes when they exist.
  • Story: all six considered. Each class gets cases or a written "not applicable, because."
  • Task: happy path plus regression.
  • Spike: exploratory charters instead of cases.
  • Epic: no cases of its own. Its stories carry them.

See references/coverage-checklist.md.

4. Level selection

Pick the lowest level that can observe the expected result.

  • Unit when the result is a return value or state inside one module. Fast, precise, cheap to keep.
  • Integration when the result depends on two or more parts talking: a service and its database, an API and its client.
  • End-to-end when the result is only visible through the full user path: a page, a flow across screens, an email arriving.
  • Manual when the result needs human judgment (visual layout, copy tone, screen reader experience) or the setup costs more than the test is worth. Write the reason.

A price calculation is a unit test, not an end-to-end test that reads the price off the screen. The end-to-end test checks the price appears; the unit test checks the math.

Полный SKILL.md на GitHub

Установить test-case-authoring в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdreferences/coverage-checklist.mdreferences/example-test-plan-story.mdreferences/exploratory-charter-template.mdreferences/test-case-template.mdreferences/test-plan-template.mdreferences/traceability-matrix-template.md

FAQ

Что делает скилл test-case-authoring?

Write the test plan and test cases for a single work item: every acceptance criterion traced to a case, each case with test data, steps, an observable expected result, a level, and the evidence a pass must leave behind. Use this skill whenever the user wants to write test cases, a test plan, or QA notes for a ticket, plan regression tests for a bug fix, build a traceability matrix, choose between unit, integration, end-to-end, and manual tests, or charter exploratory testing for a spike. Triggers on test cases, test plan, QA notes, how do I test this, write tests for this ticket, acceptance test, regression test, traceability, test coverage for a story, exploratory testing, test charter, what should QA check, fix verification. Also triggers when the user pastes a ticket or a set of acceptance criteria and asks whether it is testable, even if they never say test plan.

Как установить скилл test-case-authoring?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл test-case-authoring запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить test-case-authoring с