test-strategy

Develop test strategies covering pyramid design, coverage goals, and CI/CD integration.

53|1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/cosmix/claude-code-setup --skill test-strategy-cosmix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-strategy
Source: https://github.com/cosmix/claude-code-setup/tree/main/skills/test-strategy
Command: npx skills add https://github.com/cosmix/claude-code-setup --skill test-strategy-cosmix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test strategy defines how testing should be approached, balancing thoroughness with efficiency. This skill covers the test pyramid, coverage goals, test categorization, CI/CD integration, and risk-based prioritization.

Core Features & Use Cases

  • Test Pyramid Design: Balance unit, integration, and E2E tests.
  • Coverage Goals: Define targets for different components.
  • CI/CD Integration & Prioritization: Align tests with risk and release cadence.

Quick Start

Draft a test strategy that assigns P0 to critical paths and outlines CI integration.

Frequently Asked Questions about test-strategy

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

FAQPage Schema
How do I design a test pyramid for my project?

A test pyramid balances unit, integration, and end-to-end tests by volume and cost. Structure your tests with the majority as fast unit tests at the base, fewer integration tests in the middle, and minimal E2E tests at the top to catch critical paths while keeping CI/CD cycles efficient.

What coverage goals should I set for different components?

Coverage goals vary by component criticality and type. Define targets for core business logic, APIs, and user workflows based on risk; P0 critical paths require higher coverage, while utility functions may need less. Document targets per component type to standardize expectations.

How do I integrate test strategy with CI/CD pipelines?

Align test execution with your CI/CD workflow by tagging tests by level, assigning priority based on risk, and configuring stages to run unit tests first, then integration tests, then E2E on release branches. This ensures fast feedback and efficient resource use.

What is risk-based test prioritization?

Risk-based prioritization assigns test priority P0, P1, P2 based on business impact and failure likelihood. Focus testing effort on critical user paths and high-risk components first; this lets you catch failures early and optimize test execution time.

How should I categorize and name tests across my test suite?

Use standardized naming and tagging conventions—label tests by type (unit, integration, E2E), component, and priority—to enable filtering, reporting, and selective execution in CI/CD. Clear conventions make test maintenance and discovery simpler across teams.

Can I apply test pyramid principles to different project scales?

Yes. The test pyramid ratio adapts to scale: small projects may use 70% unit, 20% integration, 10% E2E; large systems may shift toward more integration and contract tests. Define your pyramid ratio explicitly and revisit as project size and complexity change.