← スキル一覧に戻る

chicago-tdd-pattern
by seanchatmangpt
Rust Template Generator with Frontmatter & RDF Support
⭐ 1🍴 1📅 2026年1月25日
SKILL.md
name: chicago-tdd-pattern description: "Master Chicago TDD (state-based testing). Verify observable behavior with real collaborators using AAA pattern." allowed_tools: "Read, Write, Bash(cargo make test:*)"
Chicago TDD Pattern
Core Philosophy
Chicago TDD = State-based testing with real collaborators
Verify observable behavior changes (return values, state mutations, side effects), NOT internal implementation or mocks.
AAA Pattern
#[test]
fn test_feature() {
// ARRANGE: Set up real objects (no mocks)
let manager = Manager::new(temp_dir.path());
// ACT: Call the public API
manager.execute("command").unwrap();
// ASSERT: Verify observable state
assert_eq!(manager.status(), Status::Complete);
}
Key Principles
- Use real objects (not mocks)
- Test observable behavior
- Avoid testing internal implementation
- One assertion = one test (focused)
- No flaky tests (deterministic)
Reference
See CLAUDE.md sections:
- Development Workflow (Chicago TDD)
- Stack: chicago-tdd-tools 1.4.0
- Agents: test-engineer
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です