# test-coverage > Analyze test coverage by running scripts/test-coverage.sh and writing reports/logs under .codex/. - Author: Junye-Pan - Repository: Junye-Pan/RealtimeSpeechPipeline - Version: 20260209141029 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-09 - Source: https://github.com/Junye-Pan/RealtimeSpeechPipeline - Web: https://mule.run/skillshub/@@Junye-Pan/RealtimeSpeechPipeline~test-coverage:20260209141029 --- --- name: test-coverage description: Analyze test coverage by running scripts/test-coverage.sh and writing reports/logs under .codex/. --- ## When to use - After adding or changing features to ensure coverage meets targets - When preparing for release or PR readiness checks - When coverage regressions are suspected ## Inputs - `run` (default): runs tests with coverage and analyzes results - `analyze`: analyzes an existing coverage summary without running tests Environment overrides: - `TEST_COVERAGE_CMD` — custom test command - `COVERAGE_SUMMARY_PATH` — path to coverage-summary.json - `COVERAGE_THRESHOLD` — minimum acceptable line coverage (default 80) ## Outputs (artifacts) - Report: `.codex/reports/test-coverage_.md` - Log: `.codex/logs/test-coverage_.log` ## Execution (must follow) - Always run: `./scripts/test-coverage.sh run` before reporting coverage status. - Do NOT claim coverage is improved unless the script ran and exited 0. - If coverage is below threshold, propose targeted tests and rerun. ## Report format TEST COVERAGE REPORT ==================== Status: [OK/FAILED/SKIPPED] Summary path: Threshold: % Under threshold: Artifacts: - Report: - Log: