testing-patterns

Guide software testing patterns, principles, and best practices.

1|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/arroschaves/brandaocontador-site --skill testing-patterns-arroschaves
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-patterns
Source: https://github.com/arroschaves/brandaocontador-site/tree/main/.agent/skills/testing-patterns
Command: npx skills add https://github.com/arroschaves/brandaocontador-site --skill testing-patterns-arroschaves

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to understanding and implementing effective software testing patterns and principles, helping developers build more robust and reliable applications.

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 test cases.
  • Test Types: Guidance on when to use unit, integration, and E2E tests.
  • Mocking Strategies: Principles for effective mocking of dependencies.
  • Use Case: A developer is unsure about the best way to structure their test suite for a new microservice. They can consult this Skill to learn about the testing pyramid, choose appropriate test types, and understand mocking strategies for external dependencies.

Quick Start

Explain the principles of the testing pyramid.

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 a test suite?

The AAA pattern structures clear test cases using three phases: Arrange to set up necessary data and state, Act to execute the specific function under test, and Assert to verify the actual output matches the expected result.

When should I use unit tests versus integration tests?

Unit tests should be used to verify individual software components and functions in isolation, whereas integration tests are necessary to verify that different modules, external dependencies, or services interact correctly and function together as expected.

How do I use mocking strategies for external dependencies in tests?

Mocking strategies for external dependencies involve substituting real services with controlled test doubles. This isolates the specific component being tested, ensures test determinism by simulating varied responses, and prevents slow network calls during execution.

What are common software testing anti-patterns to avoid?

Common testing anti-patterns include writing tests that depend on execution order, testing implementation details rather than public behavior, and creating overly complex test setups. This Skill guides you in avoiding these pitfalls to build maintainable suites.

How should I manage test data for reliable software testing?

Effective test data management involves creating isolated, deterministic data sets for each test case. This prevents cross-test contamination, ensures tests can run in parallel safely, and makes test failures easier to diagnose and reproduce.