← スキル一覧に戻る

test-design-patterns
by dasien
Multi-agent development system template for Claude Code with specialized agents, task queue management, and automated workflows
⭐ 3🍴 1📅 2026年1月24日
SKILL.md
name: "Test Design Patterns" description: "Apply testing patterns like AAA (Arrange-Act-Assert), mocking, fixtures, and parameterization for maintainable test suites" category: "testing" required_tools: ["Read", "Write", "Bash"]
Test Design Patterns
Purpose
Apply proven testing patterns to create maintainable, reliable test suites that effectively validate functionality.
When to Use
- Writing unit, integration, or system tests
- Organizing test code
- Creating test fixtures and data
- Designing test strategies
Key Capabilities
- AAA Pattern - Arrange-Act-Assert structure
- Test Fixtures - Reusable test data and setup
- Mocking/Stubbing - Isolate units under test
Approach
- Arrange: Set up test data and conditions
- Act: Execute the code being tested
- Assert: Verify expected outcomes
- Use descriptive test names
- Keep tests independent and isolated
Example
Context: Testing a task creation function
def test_add_task_with_valid_input_creates_task():
# Arrange
queue = TaskQueue()
task_data = {"title": "Test", "agent": "tester"}
# Act
task_id = queue.add_task(task_data)
# Assert
assert task_id is not None
assert queue.get_task(task_id).title == "Test"
Best Practices
- ✅ One logical assertion per test
- ✅ Descriptive test names explaining scenario
- ✅ Independent tests (no shared state)
- ❌ Avoid: Testing multiple unrelated things together
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です