| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.7 KB |
| skill-report.json | config | 8.2 KB |
SKILL.md
View on GitHub---
name: test-ops
description: テスト計画・実行・報告を標準化する運用スキル。
---
## テスト実装戦略
### テスト設計原則
- **網羅性**: 正常ケース、エラーケース、境界値、エッジケースを全て実装
- **独立性**: 各テストは他のテストに依存せず独立して実行可能
- **可読性**: テストコードは仕様書として機能するよう明確に記述
- **保守性**: テスト対象の変更に対して柔軟に対応できる構造
### モック化戦略
- **DBアクセス**: リポジトリパターンでモック化またはフィクスチャを使用
- **外部API**: HTTPクライアントをモック化し、レスポンスパターンを網羅
- **時間依存処理**: 現在時刻やタイマー処理は固定値でモック化
- **ファイルI/O**: ファイルシステムアクセスは仮想ファイルシステムを使用
### テスト実装手順
1. **機能分析**: テスト対象コンポーネントの全機能を詳細に調査
2. **テストケース設計**: 機能ごとに正常 / 異常 / 境界値ケースを洗い出し
3. **テスト実装**: テスト対象コードは変更せずテストのみ実装
4. **実行確認**: 全てのテストが期待通りに通過することを確認
5. **カバレッジ確認**: コードカバレッジ 100% を目指す
### テストコード品質基準
- **AAA パターン**: Arrange(準備)、Act(実行)、Assert(検証)を明確に分離
- **テスト名**: テスト内容が一目で分かる日本語での命名
- **アサーション**: 期待値と実際の値を明確に比較
- **エラーメッセージ**: 失敗時に問題箇所が特定できるメッセージ
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |