testing-patterns

Codifies software testing patterns and principles for reliable unit, integration, and end-to-end suites.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/raccioly/coach-gravity --skill testing-patterns-raccioly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-patterns
Source: https://github.com/raccioly/coach-gravity/tree/main/content/starter-kit/skills/testing-patterns
Command: npx skills add https://github.com/raccioly/coach-gravity --skill testing-patterns-raccioly

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Testing patterns and principles to improve reliability, maintainability, and coverage of software tests.

Core Features & Use Cases

  • The Testing Pyramid, AAA pattern, test type selection, and comprehensive unit/integration/End-to-End guidance.
  • Mocking principles, test data strategies, and best-practice organization for scalable test suites.
  • Use Case: A team refactors a legacy codebase to increase unit-test density while preserving integration behavior.

Quick Start

Review existing tests and start applying pyramid, AAA, and mocking patterns to structure new and existing tests.

Frequently Asked Questions about testing-patterns

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

FAQPage Schema
How do I structure unit and integration tests using the AAA pattern?

Structure unit and integration tests using the AAA pattern by organizing suites into Arrange, Act, and Assert phases, applying test pyramid density principles and structured scaffolding guidance to improve maintainability and coverage.

What are the best mocking principles for reliable test automation?

The best mocking principles for reliable test automation involve applying safe scaffolding and structured guidance to avoid anti-patterns, selecting appropriate test data strategies, and enforcing clear validation of quality gates.

When should I use unit testing versus end-to-end testing in my test suite?

Use unit testing versus end-to-end testing by applying the test pyramid to optimize density; increase unit tests for granular logic while preserving integration behavior, reserving end-to-end tests for critical workflows.

How do I refactor a legacy codebase to increase unit test density?

Refactor a legacy codebase to increase unit test density by reviewing existing tests, applying AAA and mocking patterns to structure new suites, and validating quality gates to preserve integration behavior.

What testing anti-patterns should I avoid for better quality assurance?

Avoid testing anti-patterns for better quality assurance by enforcing structured guidance, safe scaffolding, and clear validation of quality gates, preventing brittle mocks and disorganized test data strategies.

Can I apply test pyramid principles to scale existing test suites?

You can apply test pyramid principles to scale existing test suites by codifying best practices, optimizing workflows across unit and integration scenarios, and organizing test data strategies for maintainable coverage.