testing-trophy

Guide integration-first testing for React, Cloudflare Workers, and Swift projects.

2|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/jonmumm/skills --skill testing-trophy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-trophy
Source: https://github.com/jonmumm/skills/tree/main/testing-trophy
Command: npx skills add https://github.com/jonmumm/skills --skill testing-trophy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kent C. Dodds' Testing Trophy promotes a testing philosophy focusing on integration tests to increase confidence and reduce brittle unit tests.

Core Features & Use Cases

  • Integration-first testing patterns for React, Cloudflare Workers, and Swift.
  • Clear guidance on when to use static, unit, integration, and E2E tests, plus recommended test distribution.
  • Realistic examples comparing integration play functions vs unit tests to illustrate better reliability.

Quick Start

Start with integration-first testing by using Storybook play functions for components, vitest-pool-workers for Cloudflare Workers, and XCTest UI tests for Swift.

Frequently Asked Questions about testing-trophy

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

FAQPage Schema
What is the testing trophy approach and how does it differ from the testing pyramid?

The testing trophy approach prioritizes integration tests over unit tests to increase confidence and reduce brittleness. Unlike the testing pyramid, it guides teams on when to use static, unit, integration, and E2E tests with a recommended distribution favoring integration.

How do I write integration tests for React components using Storybook?

You write integration tests for React components using Storybook play functions. This approach validates component behavior by interacting with them as users would, providing better reliability compared to isolated unit tests.

Does vitest-pool-workers work for testing Cloudflare Workers?

Yes, vitest-pool-workers works for testing Cloudflare Workers. It is the recommended tool for applying the integration-first testing philosophy to your serverless worker code, ensuring behavior validation without brittle unit tests.

Can I use integration testing patterns for Swift projects?

Yes, you can apply integration testing patterns to Swift projects using XCTest UI tests. This allows you to shift testing efforts toward integration, validating software behavior with higher confidence than isolated unit tests.

When should I use E2E tests versus integration tests?

Use E2E tests sparingly for critical user paths and integration tests for most component interactions. The testing trophy philosophy provides clear guidance on structuring test efforts, recommending a distribution that leans heavily on integration tests to maximize confidence.

Why are my unit tests brittle and how do I fix them?

Unit tests become brittle when they mock too many internal dependencies. Shift to integration tests to validate real behavior and interactions, using examples comparing integration play functions against unit tests to achieve better reliability and confidence.