classmethod

Test Optimization Patterns — Testing skill for Claude Code

Testing community

テスト実行速度を改善するためのリファクタリングパターンとベストプラクティス集.

How to install Test Optimization Patterns

Installs to ~/.claude/skills/classmethod-tsumiki-test-optimization-patterns/SKILL.md

Terminal
mkdir -p ~/.claude/skills/classmethod-tsumiki-test-optimization-patterns && curl -fsSL https://raw.githubusercontent.com/classmethod/tsumiki/HEAD/commands/test-optimization-patterns.md -o ~/.claude/skills/classmethod-tsumiki-test-optimization-patterns/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Test Optimization Patterns does


description: テスト実行速度を改善するためのリファクタリングパターンとベストプラクティス集

テスト最適化パターン集

テスト実行速度を改善するためのリファクタリングパターンとベストプラクティスをまとめたドキュメントです。

パターン一覧

パターン 効果 難易度 リスク
1. データベーストランザクション ★★★★★ 低 低
2. ファイルI/Oのモック化 ★★★★★ 低 低
3. 外部APIのモック化 ★★★★★ 中 低
4. beforeEach → beforeAll ★★★☆☆ 低 中
5. 非同期待機の最適化 ★★★☆☆ 中 低
6. テストデータファクトリー ★★☆☆☆ 中 低
7. テストの粒度見直し ★★★☆☆ 高 中
8. 並列実行可能な設計 ★★★☆☆ 中 中

Alternatives in Testing

  • Webapp Testing — Test local web applications using Playwright for UI verification and debugging 94.1k ★
  • #29 — #52, #103) 92.5k ★
  • /test Routing — Vérifie le routing de commandes RTK sans exécution (dry-run) 25.5k ★

Full documentation available on GitHub

View Source Repository