Skip to main content

tdd

Guides execute-inspect-adjust development and t-wada Red-Green-Refactor TDD. Use for exploratory implementation or when stable behaviour needs an executable test-first contract.

소스 정보

저장소
ryoppippi/dotfiles
최근 소스 활동
2026년 8월 1일 11:12
감지된 SKILL.md 언어
영어
스타
268
포크
5

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
6 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
tdd
description
Guides execute-inspect-adjust development and t-wada Red-Green-Refactor TDD. Use for exploratory implementation or when stable behaviour needs an executable test-first contract.
Use TDD when a behaviour should become an executable contract. For unfamiliar APIs, prototypes, and data exploration, use execute-inspect-adjust first; not every probe needs a test. Before writing a test, identify the public interface and the seam where its behaviour can be observed. When `CONTEXT.md` or relevant ADRs exist, read them so test names and interfaces use the project's vocabulary. For test design and anti-patterns, read [`references/testing.md`](references/testing.md). For test doubles and system boundaries, read [`references/mocking.md`](references/mocking.md). ## Cycle 1. Sketch behaviours as placeholder tests, identify their public seams, and choose one slice. Start bug fixes with a regression test. 2. **Red** — Write the smallest failing test and confirm the expected failure. 3. **Green** — Write the minimum production code that passes it. 4. **Refactor** — Improve test and production code while keeping tests green. 5. Run affected tests after each green and refactor step, then repeat. Keep each test focused on one observable behaviour; do not weaken tests to make the build pass. ## Rules - Test through a public interface at an agreed seam, not through private methods or implementation details. - Work in vertical slices: one seam, one test, and one minimal implementation at a time. Do not write all tests first and all production code afterwards. - Avoid implementation-coupled and tautological tests; expected values should come from an independent source of truth. - Mock only system boundaries. For HTTP APIs, prefer request-level interception such as MSW over mocking `fetch`, an API client, or an internal module. For runner-specific syntax, read the matching file in `references/`.
GitHub에서 보기