testing-strategy

Design testing strategies with pyramid composition, tooling, and coverage targets.

2|1|Updated Dec 19, 2022
One-click install
npx skills add https://github.com/nicholasgriffintn/machine-setup --skill testing-strategy-nicholasgriffintn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-strategy
Source: https://github.com/nicholasgriffintn/machine-setup/tree/main/ai-tooling/skills/testing-strategy
Command: npx skills add https://github.com/nicholasgriffintn/machine-setup --skill testing-strategy-nicholasgriffintn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to designing and implementing a comprehensive testing strategy that improves software quality and reduces regressions.

Core Features & Use Cases

  • Guiding the selection of testing levels (unit, integration, end-to-end)
  • Defining test coverage targets and risk-based priorities
  • Providing practical workflows and templates for test planning and execution

Quick Start

Outline a testing strategy for a codebase, including pyramid composition, tooling recommendations, and example test cases.

Frequently Asked Questions about testing-strategy

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

FAQPage Schema
How do I design a comprehensive testing strategy for my codebase?

A robust testing strategy defines the testing pyramid composition across unit, integration, and end-to-end levels. It establishes test coverage targets, risk-based priorities, tooling recommendations, and mock strategies to structure development, CI/CD, and release planning workflows effectively.

What is the testing pyramid and how do I balance unit vs integration tests?

The testing pyramid structures test distribution across unit, integration, and end-to-end levels, typically prioritizing a larger base of unit tests. Balancing them involves defining risk-based priorities and setting specific coverage targets to guide development and CI/CD workflows.

What's the best way to define test coverage targets and risk-based priorities?

Defining test coverage targets involves establishing risk-based priorities within your testing strategy to focus validation on critical code paths. This structured approach guides development execution and CI/CD release planning workflows by allocating effort where regression risk is highest.

How do I choose the right testing tools and mock strategies for CI/CD?

Choosing testing tools and mock strategies involves specifying requirements based on your selected testing levels—unit, integration, and end-to-end. Tooling recommendations should align with your CI/CD workflows to ensure consistent test execution and release planning.

When should I implement end-to-end testing instead of unit testing?

You should implement end-to-end testing instead of unit testing when validating complete user workflows across multiple components, whereas unit testing isolates individual logic. Your testing strategy balances these levels using risk-based priorities to optimize coverage and CI/CD efficiency.