happier-testing

Select Happier test lanes and enforce fixture guardrails in TDD workflows.

1.4k|122|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/happier-dev/happier --skill happier-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: happier-testing
Source: https://github.com/happier-dev/happier/tree/main/skills/happier-testing
Command: npx skills add https://github.com/happier-dev/happier --skill happier-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents Happier changes from drifting into broken shared contracts or stale fixtures by enforcing a strict RED-GREEN-REFACTOR workflow tailored to the repo’s test lanes and anti-flake rules.

Core Features & Use Cases

  • Lane-aware TDD workflow: Chooses the smallest relevant test slice using Happier’s canonical lane map and setup files to avoid unnecessary builds and reduce noise.
  • Failure classification guardrails: Distinguishes production bugs from test drift, harness drift, and infra/resource issues so fixes land in the right layer.
  • Anti-flake validation discipline: Applies rerun discipline (only one active rerun per spec/lane) and broader reruns when shared helpers change to catch leaked handles or cleanup regressions.

Use case: You change a shared runtime contract or CLI/server/UI wiring point, and you need to update the right tests without letting outdated fixtures or harnesses mask real regressions.

Quick Start

Use the happier-testing skill when you modify Happier code that affects shared runtime contracts, CLI/server/UI flows, or any lane prone to stale fixtures, and follow the RED-GREEN-REFACTOR workflow with the lane map and fixture/mock policy.

Frequently Asked Questions about happier-testing

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

FAQPage Schema
How do I enforce TDD workflow when changing shared runtime contracts across CLI, server, and UI lanes?

Enforce TDD by selecting the smallest relevant test slice using Happier's canonical lane map, then following tight RED-GREEN-REFACTOR loops with fixture and mock guardrails. This prevents broken shared contracts and reduces unnecessary builds and infra noise.

How do I distinguish production bugs from test drift and infra issues during test failures?

Failure classification guardrails distinguish production bugs from test drift, harness drift, and infra or resource issues. This ensures fixes land in the correct layer, preventing outdated fixtures or harnesses from masking real regressions.

What is the best way to prevent stale fixture drift when updating integration and e2e tests?

Prevent stale fixture drift by applying fixture and mock guardrails alongside an inventory-first impact scoping step. This workflow ensures that changes to shared helpers or wiring points update the correct tests without masking real regressions.

How do I handle flaky tests and apply rerun discipline in an e2e testing workflow?

Anti-flake validation discipline handles flaky tests by allowing only one active rerun per spec or lane. When shared helpers change, broader reruns are triggered to catch leaked handles or cleanup regressions across the affected test lanes.

Does test-driven development work with database contract testing and provider scenarios?

Test-driven development supports database contract testing and provider scenarios by applying lane-aware test selection and fixture guardrails. The workflow covers behavior-changing work across integration, e2e core, providers, and database contracts while minimizing infra noise.