mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-07 17:53:32 +08:00
Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)"
This reverts commit 1bd68ff534.
This commit is contained in:
27
docs/ja-JP/commands/test-coverage.md
Normal file
27
docs/ja-JP/commands/test-coverage.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# テストカバレッジ
|
||||
|
||||
テストカバレッジを分析し、不足しているテストを生成します。
|
||||
|
||||
1. カバレッジ付きでテストを実行: npm test --coverage または pnpm test --coverage
|
||||
|
||||
2. カバレッジレポートを分析 (coverage/coverage-summary.json)
|
||||
|
||||
3. カバレッジが80%の閾値を下回るファイルを特定
|
||||
|
||||
4. カバレッジ不足の各ファイルに対して:
|
||||
- テストされていないコードパスを分析
|
||||
- 関数の単体テストを生成
|
||||
- APIの統合テストを生成
|
||||
- 重要なフローのE2Eテストを生成
|
||||
|
||||
5. 新しいテストが合格することを検証
|
||||
|
||||
6. カバレッジメトリクスの前後比較を表示
|
||||
|
||||
7. プロジェクト全体で80%以上のカバレッジを確保
|
||||
|
||||
重点項目:
|
||||
- ハッピーパスシナリオ
|
||||
- エラーハンドリング
|
||||
- エッジケース(null、undefined、空)
|
||||
- 境界条件
|
||||
Reference in New Issue
Block a user