Files
everything-claude-code/docs/ja-JP/commands/test-coverage.md
2026-02-12 16:56:29 +09:00

28 lines
916 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# テストカバレッジ
テストカバレッジを分析し、不足しているテストを生成します。
1. カバレッジ付きでテストを実行: npm test --coverage または pnpm test --coverage
2. カバレッジレポートを分析 (coverage/coverage-summary.json)
3. カバレッジが80%の閾値を下回るファイルを特定
4. カバレッジ不足の各ファイルに対して:
- テストされていないコードパスを分析
- 関数の単体テストを生成
- APIの統合テストを生成
- 重要なフローのE2Eテストを生成
5. 新しいテストが合格することを検証
6. カバレッジメトリクスの前後比較を表示
7. プロジェクト全体で80%以上のカバレッジを確保
重点項目:
- ハッピーパスシナリオ
- エラーハンドリング
- エッジケースnull、undefined、空
- 境界条件