Test Optimization Patterns — Testing skill for Claude Code
テスト実行速度を改善するためのリファクタリングパターンとベストプラクティス集.
How to install Test Optimization Patterns
Installs to ~/.claude/skills/classmethod-tsumiki-test-optimization-patterns/SKILL.md
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 RepositoryRelated Skills
Darwin Skill
达尔文.skill —— 一个让你的Skill无限进化的系统:评估→改进→测试→保留或回滚 Autoresearch-inspired autonomous skill optimization for Claude C
Generate Test Cases
Generate comprehensive test cases with automatic analysis and coverage optimization
Playwright Review
Playwright test review for accessibility, UI issues, and performance optimization
Neolab TDD
Test-driven development with NeoLab patterns
TDD Skill — BitcoinAddressFinder
This skill documents test-driven development practices and refactoring patterns used in the BitcoinAddressFind
QA Review
Review test automation code for OOP compliance, Allure metadata, proper abstractions, and flaky patterns. Invo
Related Agents
Developer
Use this agent when you need expert guidance on Go development best practices, including code implementation,
Nodejs Expert
Use this agent for Node.js ES module patterns, TypeScript configuration and build tooling, monorepo NPM packag
Context Analyzer
Analyzes context usage patterns, identifies waste, and provides optimization recommendations. Use when the use