testing-strategy

Guide software testing strategies with the testing pyramid and flaky test prevention.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/semirm-dev/agent-army --skill testing-strategy-semirm-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-strategy
Source: https://github.com/semirm-dev/agent-army/tree/main/claude/skills/testing-strategy
Command: npx skills add https://github.com/semirm-dev/agent-army --skill testing-strategy-semirm-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance on building robust and efficient testing strategies, helping developers decide on the right test types, prevent flaky tests, and establish clear coverage targets.

Core Features & Use Cases

  • Testing Pyramid Guidance: Understand and apply the optimal distribution of unit, integration, and end-to-end tests.
  • Test Type Decision Trees: Navigate complex scenarios to select the most appropriate test type.
  • Flaky Test Prevention: Learn common causes and effective solutions for unreliable tests.
  • Test Data Patterns: Implement best practices for generating test data using factories and builders.
  • Use Case: When starting a new project or refactoring an existing one, use this Skill to define a comprehensive testing strategy that balances thoroughness with development speed.

Quick Start

Use the testing-strategy skill to understand the recommended ratio of unit to integration tests for a new backend service.

Frequently Asked Questions about testing-strategy

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

FAQPage Schema
What is the recommended ratio of unit to integration tests for a new backend service?

The recommended ratio of unit to integration tests follows the testing pyramid, which emphasizes a broad base of unit tests, fewer integration tests, and a minimal layer of end-to-end tests to balance thoroughness with execution speed.

How do I prevent flaky tests in my CI pipeline?

To prevent flaky tests, you must identify common causes of test unreliability and apply targeted solutions. This strategy provides patterns for effective test data generation using factories and builders to ensure consistent execution.

How do I choose between unit and integration tests for complex scenarios?

To choose between unit and integration tests for complex scenarios, use test type decision trees. These trees help navigate specific conditions to select the most appropriate test type based on your architecture and dependencies.

What are the best patterns for generating test data?

The best patterns for generating test data involve using factories and builders. These patterns establish robust test data generation, ensuring consistent inputs that prevent flaky tests and improve overall test suite reliability.

How do I set test coverage targets for my project?

To set test coverage targets, address cross-cutting concerns for coverage alongside CI parallelization. Establishing clear targets helps balance development speed with thoroughness when defining a comprehensive testing strategy.

Does this testing strategy work for refactoring an existing test suite?

Yes, this testing strategy works for refactoring an existing test suite. It provides comprehensive guidance on optimizing test distribution and establishing clear coverage targets to improve reliability during project overhauls.