testing-patterns

Codify software testing best practices, including the testing pyramid, AAA structure, and mocking strategies.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/devon87warren-afk/eboss-monorepo --skill testing-patterns-devon87warren-afk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-patterns
Source: https://github.com/devon87warren-afk/eboss-monorepo/tree/main/apps/manager/.agent/skills/testing-patterns
Command: npx skills add https://github.com/devon87warren-afk/eboss-monorepo --skill testing-patterns-devon87warren-afk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to software testing patterns and principles, helping developers write more robust, reliable, and maintainable test suites.

Core Features & Use Cases

  • Testing Pyramid: Understand the ideal distribution of unit, integration, and E2E tests.
  • AAA Pattern: Learn the Arrange, Act, Assert structure for clear tests.
  • Mocking Strategies: Discover when and how to use mocks, stubs, spies, and fakes.
  • Use Case: A developer can quickly reference the best practices for unit testing a specific function, ensuring it's fast, isolated, and repeatable.

Quick Start

Review the principles for writing effective unit tests.

Frequently Asked Questions about testing-patterns

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

FAQPage Schema
What is the testing pyramid and how does it structure unit, integration, and E2E tests?

The testing pyramid structures test suites by distributing the majority of tests as fast, isolated unit tests, followed by fewer integration tests, and a minimal amount of end-to-end tests. This distribution ensures reliable and maintainable software quality verification across all levels.

How do I write clear and isolated unit tests using the AAA pattern?

To write clear unit tests using the AAA pattern, you structure code into three distinct phases: Arrange the necessary preconditions and inputs, Act by executing the specific function, and Assert the expected outcomes. This structure enforces deterministic and isolated testing.

What is the best way to manage mocking strategies for integration tests?

The best way to manage mocking strategies is to understand the distinct roles of test doubles: use mocks for verifying interactions, stubs for providing canned answers, spies for recording information, and fakes for simulating working implementations. This ensures maintainable integration tests.

When should I avoid specific test anti-patterns in my software testing workflow?

You should avoid test anti-patterns when they compromise determinism or isolation, such as relying on shared state, testing implementation details instead of behavior, or creating brittle end-to-end tests. Following established test organization and data management guidelines prevents these maintainability issues.

Does applying these testing patterns work with my existing software quality scripts?

Yes, applying these testing patterns works with existing software quality scripts by providing clear guidelines on test organization, data management, and isolation. You can refactor current unit, integration, and end-to-end tests into the AAA structure without requiring external dependencies.