-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
Codecov currently flags low patch coverage on command files that are mostly glue code. This creates pressure to write tests that pass but don't catch real bugs (test theater).
Example from PR #77:
install-from-registry.ts- 4.32% coverage (but it's glue code following established patterns)add.ts- 16.23% coverage (routing logic, not complex business logic)
Proposal
Configure codecov.yml with tiered thresholds:
coverage:
status:
patch:
default:
target: 70%
commands:
paths:
- "packages/cli/src/commands/**"
target: 20% # Lower bar for command glue code
schemas:
paths:
- "packages/cli/src/schemas/**"
- "packages/cli/src/utils/**"
target: 80% # Higher bar for logic-heavy codeRationale
- Commands/ - Mostly glue code calling tested utilities. Integration tests are brittle and high-maintenance.
- Schemas/Utils/ - Core logic that should have high coverage.
- Tests/ - Should be ignored entirely.
Alternatives Considered
- Ignore files - Hides coverage entirely, loses visibility
- Disable patch coverage - Too permissive
- Flag-based coverage - More complex, same outcome
Tasks
- Create
codecov.ymlin repo root - Configure tiered thresholds
- Test on a PR to verify behavior
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request