fix: enforce 100% coverage for new/modified code in backend and frontend tests

This commit is contained in:
GitHub Actions
2026-01-08 00:09:04 +00:00
parent 703bdb0745
commit 65070b095a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -45,6 +45,7 @@ Your priority is writing code that is clean, tested, and secure by default.
- Run `go fmt ./...`.
- Run `go test ./...` to ensure no regressions.
- **Coverage (MANDATORY)**: Run the coverage script explicitly. This is NOT run by pre-commit automatically.
- **MANDATORY**: Patch coverage must cover 100% of new/modified code. This prevents CodeCov Report failing CI.
- **VS Code Task**: Use "Test: Backend with Coverage" (recommended)
- **Manual Script**: Execute `/projects/Charon/scripts/go-test-coverage.sh` from the root directory
- **Minimum**: 85% coverage (configured via `CHARON_MIN_COVERAGE` or `CPM_MIN_COVERAGE`)