testing

Generate test plans with AAA patterns and coverage goals for unit, integration, and E2E tests.

2|2|Updated Feb 9, 2017
One-click install
npx skills add https://github.com/sumik5/dotfiles --skill testing-sumik5
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/sumik5/dotfiles/tree/main/claude-code/skills/testing
Command: npx skills add https://github.com/sumik5/dotfiles --skill testing-sumik5

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams adopt Test-Driven Development, write tests before features, ensure regression checks, and maintain high test coverage with clear guidance and examples.

Core Features & Use Cases

  • TDD workflow guidance: Red-Green-Refactor cycle, AAA pattern, and practical TypeScript examples.
  • Test types & coverage goals: Unit, integration, and E2E tests with recommended distributions.
  • Quality practices: Mocking, isolation, and reproducible test strategies for maintainable code.

Quick Start

Use the testing skill to craft a minimal test suite for a new feature and verify it with coverage reports.

Frequently Asked Questions about testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write tests before implementing features using TDD?

Test-driven development follows the Red-Green-Refactor cycle: write a failing test first, implement code to pass it, then refactor. This Skill guides you through the AAA pattern (Arrange-Act-Assert) and TypeScript examples to structure tests that drive feature development and ensure coverage goals are met from the start.

What's the best way to achieve 100% code coverage with unit, integration, and E2E tests?

Combine unit tests for isolated components, integration tests for system interactions, and E2E tests for user workflows. This Skill provides recommended distributions across test types, mocking strategies, and isolation techniques to reach full coverage while maintaining reproducible, maintainable tests.

How do I structure tests using the AAA pattern for bug reproduction and refactoring?

The AAA pattern—Arrange (set up state), Act (execute code), Assert (verify results)—creates clear, reproducible tests for both bug fixes and refactoring. This Skill enforces this structure across unit, integration, and E2E contexts to ensure tests remain maintainable and regression-proof during code reviews.

Can I use TDD and high coverage goals for feature development and regression checks?

Yes. TDD enforces regression checks by writing tests before features, and high coverage goals prevent gaps in protection. This Skill aligns testing practices with quality standards, producing test plans that satisfy functional requirements and catch regressions during both feature rollout and code reviews.

What mocking and isolation strategies ensure reproducible tests across test types?

Mocking external dependencies and isolating units under test ensures tests run consistently regardless of environment. This Skill provides strategies for unit, integration, and E2E contexts to eliminate flakiness and make tests reproducible for reliable bug fixes and maintenance.