Skip to content
← INDEX / Tags
TAG · 1 prompts

#測試驅動

Explore public prompts for 測試驅動. Narrow the topic by medium or change the order.

Showing 1–1 of 1 · Page 1 / 1

Free01
TUTORIALClaude Code
2026-06-08

Claude Code TDD Loop: Red, Green, Refactor Done Right

Forces Claude Code through a strict red→green→refactor cycle: for every behavior, first write a test that fails (red) and actually run it to prove the failure, then write the minimal implementation that just makes it pass (green), and finally refactor under the safety of the passing tests. Cures the AI's old habit of jumping straight to the happy path, skipping edge cases, and faking test coverage.

Intermediate
Read