-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomerstestingTest infrastructureTest infrastructure
Description
Summary
Current unit test coverage is low across several packages. While E2E tests cover integration scenarios, improved unit test coverage would help catch regressions earlier and make the codebase more maintainable.
Current Coverage
From CI output:
| Package | Coverage |
|---|---|
internal/controller |
33.9% |
pkg/cli |
10.4% |
api/v1alpha1 |
0% |
cmd/* |
0% |
pkg/agent |
0% |
Proposed Improvements
- Establish baseline - Document current coverage and set realistic targets
- Prioritize critical paths - Focus on controller reconciliation and CLI commands
- Add coverage reporting - Consider Codecov or similar for PR coverage diffs
- Update CONTRIBUTING.md - Add guidance on test expectations for new code
Areas to Focus
- Controller reconciliation logic (highest priority)
- CLI command parsing and validation
- Catalog loading and model lookup
- CRD validation and defaulting
- Error handling paths
Notes
For early-stage projects with heavy K8s integration, E2E tests often provide more value than unit test percentages. This issue is about improving coverage incrementally, not blocking PRs on arbitrary thresholds.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomerstestingTest infrastructureTest infrastructure