fixture-driven-tdd

Community

Test real CLI behavior with fixtures.

Authorrecca0120
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Fixture-driven TDD prevents parser and pipeline tests from passing on guessed event shapes by forcing tests to use real Claude CLI JSON captured from the database or recordings.

Core Features & Use Cases

  • Uses real CLI output as the source of truth: loads and replays NDJSON/JSONL event lines from apps/summoner/src/__fixtures__/claude/real to validate parser behavior.
  • Supports synthetic events when real data can’t trigger: uses apps/summoner/src/__fixtures__/claude/synthetic for edge cases that are hard to reproduce while keeping them clearly marked.
  • Builds deterministic fake segments: adds segment builder functions in apps/summoner/src/test/fake-claude.ts so tests generate events consistently and without inline JSON.
  • Covers both parser and end-to-end pipeline: validates adapter parsing status and can assert end-to-end event flow via the fake summoner and channel emission.

Quick Start

Ask the skill to show you how to capture a new fixture from the real CLI output, add it to the correct real/ or synthetic/ fixture folder, extend the fake-claude.ts segment builders, and then write a RED-to-GREEN parser and pipeline test using those fixtures.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fixture-driven-tdd
Download link: https://github.com/recca0120/code-quest/archive/main.zip#fixture-driven-tdd

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.