/waris-skill-library:warisskill-testing-strategyfrom waris-skill-library
Use when deciding what level of automated testing a feature needs beyond unit-level TDD — whether it warrants an E2E test, and what the integration-test bar is for a new API endpoint. Trigger when finishing a critical user flow (auth, checkout, core happy path) or any new endpoint. Complements warisskill-workflows-tdd (unit-level coverage floor) — this skill is the layer above that: E2E and integration test scope.
Ships in waris-skill-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every UI change already gets manually verified in a running browser (a standing global rule) — that catches most regressions during development. Automated E2E tests are for the smaller set of flows where a silent regression later would actually be expensive:
Don't write E2E tests for every feature with UI interaction — that's duplicate coverage of what manual verification already caught, at high maintenance cost (E2E suites are the most expensive tests to keep green).
Higher bar than the general TDD coverage floor specifically for API
endpoints — even a "simple" CRUD endpoint gets at least a basic
integration test, because an endpoint is a contract boundary: it's the
first thing an external client depends on, and it's cheap to break
silently (a validation change, an auth check regression) without a test
catching it. This is broader than warisskill-workflows-tdd's
"non-trivial logic only" floor — apply it here regardless of how simple
the endpoint's logic looks.
Minimum for an endpoint integration test: happy path returns expected
shape/status, and at least one failure case (auth rejection, validation
failure, or not-found) returns the correct error per
warisskill-system-design-api-design's error envelope.
tests/
├── e2e/
│ ├── auth/login.spec.ts
│ └── checkout/purchase-flow.spec.ts
├── fixtures/
└── playwright.config.ts
data-testid selectors, not text/CSS-class selectors — text and
styling change; test IDs are stable and make the selector's intent
explicit.waitForResponse, specific element visibility),
not fixed timeouts — a hardcoded sleep() is the top cause of flaky E2E
suites.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sodiqabdulwaris/waris-skill-library --plugin waris-skill-library129 skills in this plugin
/api-and-interface-designGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend./browser-testing-with-devtoolsTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured./ci-cd-and-automationAutomates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies./code-review-and-qualityConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch./code-simplificationSimplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity./constraint-driven-developmentEstablishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.