05 — Testing Strategies

Design automated testing strategies covering unit, integration, and E2E tests.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/ftnilsson/agent-cli --skill 05-testing-strategies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 05 — Testing Strategies
Source: https://github.com/ftnilsson/agent-cli/tree/main/development/skills/05-testing-strategies
Command: npx skills add https://github.com/ftnilsson/agent-cli --skill 05-testing-strategies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design and implement automated tests that provide confidence to ship and change code, reducing the fear of introducing regressions.

Core Features & Use Cases

  • Testing Pyramid: Understand the balance between Unit, Integration, and E2E tests.
  • Test Doubles: Learn to use mocks, stubs, and fakes effectively.
  • TDD & Property-Based Testing: Implement robust testing methodologies.
  • Use Case: When refactoring a critical piece of business logic, you can rely on a comprehensive test suite to ensure your changes haven't broken existing functionality.

Quick Start

Use the testing strategies skill to learn about the testing pyramid and how to write effective unit tests.

Frequently Asked Questions about 05 — Testing Strategies

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

FAQPage Schema
What is the testing pyramid and how do I balance unit, integration, and E2E tests?

The testing pyramid balances unit, integration, and E2E tests to build a suite that gives confidence for shipping. It emphasizes a broad base of fast unit tests, fewer integration tests, and a minimal layer of slow end-to-end tests.

How do I use mocks, stubs, and fakes effectively as test doubles?

Test doubles like mocks, stubs, and fakes isolate the system under test by replacing real dependencies. Effective use involves matching the double to the scenario: fakes for working implementations, stubs for state setup, and mocks for verifying interactions.

How do I start writing automated tests to safely refactor critical business logic?

To safely refactor critical business logic, start by designing an automated testing strategy that covers the testing pyramid, implements TDD, and uses property-based testing to verify existing functionality and prevent regressions before making changes.

Does Test-Driven Development (TDD) work well with property-based testing?

Test-Driven Development (TDD) works well with property-based testing by combining example-driven design with broad, randomized input verification. TDD guides the interface design while property-based testing validates edge cases and invariants across generated data.

What are common pitfalls when designing an automated testing strategy?

Common pitfalls in automated testing strategy include over-relying on slow E2E tests, using the wrong test doubles, and writing brittle tests that break during refactoring. The goal is writing tests that provide confidence to change code without fear of regressions.