npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin tubone24-claude-code-settings# テストカバレッジ テストカバレッジを分析し、不足しているテストを生成: 1. カバレッジ付きでテストを実行: npm test --coverage または pnpm test --coverage 2. カバレッジレポートを分析(coverage/coverage-summary.json) 3. 80%カバレッジしきい値を下回るファイルを特定 4. カバレッジ不足の各ファイルに対して: - テストされていないコードパスを分析 - 関数のユニットテストを生成 - APIの統合テストを生成 - 重要なフローのE2Eテストを生成 5. 新しいテストが通ることを確認 6. 前後のカバレッジ指標を表示 7. プロジェクト全体で80%以上のカバレッジを確保 フォーカスすべき点: - ハッピーパスシナリオ - エラーハンドリング - エッジケース(null、undefined、空) - 境界条件
/test-coverageAnalyzes test coverage via detected framework (Jest, Vitest, Pytest, Rust, Java, Go), generates missing tests for <80% files, verifies improvements, and reports before/after coverage.
/test-coverageAnalyzes test coverage using tools for JavaScript, Python, Java, C#, Ruby; generates reports, identifies gaps, and recommends new tests.
/test-coverageAnalyzes test coverage using tools for JavaScript, Python, Java, C#, Ruby; generates reports, identifies gaps, and recommends new tests.
/test-coverageAnalyzes test coverage gaps in JS/TS, Python, Go, and Rust projects using vitest/jest, pytest, go test, or cargo tarpaulin, then generates and verifies tests for uncovered paths targeting 80% line coverage.
/test-coverageAnalyzes test coverage via npm/pnpm test --coverage, generates unit/integration/E2E tests for files below 80%, verifies them, and reports before/after metrics to achieve 80%+ coverage.
/test-coverageAnalyzes test coverage, detects frameworks like Jest/Vitest/Pytest, identifies gaps below 80%, generates missing tests, verifies improvements, and reports before/after comparison.
テストカバレッジを分析し、不足しているテストを生成:
カバレッジ付きでテストを実行: npm test --coverage または pnpm test --coverage
カバレッジレポートを分析(coverage/coverage-summary.json)
80%カバレッジしきい値を下回るファイルを特定
カバレッジ不足の各ファイルに対して:
新しいテストが通ることを確認
前後のカバレッジ指標を表示
プロジェクト全体で80%以上のカバレッジを確保
フォーカスすべき点: