testing

Guide developers to implement unit, integration, and end-to-end tests with TDD cycles.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/jaeyeonling/opencode-kit --skill testing-jaeyeonling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/jaeyeonling/opencode-kit/tree/main/.opencode/skills/testing
Command: npx skills add https://github.com/jaeyeonling/opencode-kit --skill testing-jaeyeonling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teams struggle to establish repeatable testing practices, leading to flaky releases and missed quality signals. This guide provides a structured approach to testing strategies, pyramid balance, and disciplined workflows.

Core Features & Use Cases

  • Test Pyramid guidance: emphasizes a balanced mix of unit, integration, and end-to-end tests to optimize feedback loops.
  • TDD and QA workflows: introduces Red-Green-Refactor cycles and test-first practices to drive design quality.
  • Patterns and checklists: practical patterns for mocks/stubs/spies, naming, and coverage governance across projects.
  • Use Case: a team adopting a testing discipline to ship features faster with higher confidence.

Quick Start

Write your first unit test for a critical function and expand the suite incrementally.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I balance unit, integration, and end-to-end tests in my testing strategy?

A balanced testing strategy uses a test pyramid to emphasize unit tests, with fewer integration and end-to-end tests to optimize feedback loops. This approach prevents flaky releases and ensures fast, reliable quality signals across your software projects.

What is the Red-Green-Refactor cycle in TDD?

The Red-Green-Refactor cycle in TDD is a test-first practice where you write a failing test, implement code to make it pass, and then refactor. This workflow drives design quality and establishes disciplined testing habits for faster feature delivery.

How do I use mocks, stubs, and spies correctly in unit testing?

Mocks, stubs, and spies are practical patterns for isolating dependencies during unit testing. Using a checklist-based approach ensures you apply these test doubles correctly, maintaining coverage governance and preventing flaky test behavior in your suite.

What's the best way to establish repeatable testing practices for a team?

The best way to establish repeatable testing practices is adopting structured TDD workflows, naming conventions, and documentation standards. Enforcing a checklist-based approach to test quality helps teams ship features faster with higher confidence and fewer missed signals.

Can I apply TDD workflows to existing software projects with no tests?

Yes, you can apply TDD to existing projects by writing your first unit test for a critical function and expanding incrementally. Structured practice requirements and test-first workflows integrate into existing codebases to gradually build coverage and confidence.