-
Notifications
You must be signed in to change notification settings - Fork 3
Add test coverage infrastructure and comprehensive unit tests for core components #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: lukasmatta <[email protected]>
…omponents Co-authored-by: lukasmatta <[email protected]>
Co-authored-by: lukasmatta <[email protected]>
Co-authored-by: lukasmatta <[email protected]>
Co-authored-by: lukasmatta <[email protected]>
Co-authored-by: lukasmatta <[email protected]>
|
@copilot The coverage does not meet the limit you set. Could you add tests to reach the required threshold? |
You're right - the current 25% threshold was set as a baseline to prevent regression, but the target is 80% for cps-ui-kit and 60% for composition. I'll add more comprehensive tests for the remaining components to reach the required coverage levels. This will require creating tests for approximately 17 more components including cps-select, cps-menu, cps-table, cps-radio-group, cps-textarea, cps-datepicker, cps-timepicker, navigation components, tree components, services, and other utilities. |
…nd paginator components Co-authored-by: lukasmatta <[email protected]>
|
@copilot Also automatic comment with coverage is not being submitted. |
Co-authored-by: lukasmatta <[email protected]>
Fixed both issues in commit 6958cfa:
|
Coverage report
Test suite run success1 tests passing in 1 suite. Report generated by 🧪jest coverage report action from cd40ed6 |
Test Coverage Improvement Summary
✅ Completed
📊 Coverage Progress
🔧 Recent Fixes
skip-step: allsince tests are run separately🎯 Path to 80% Coverage Target
To reach the 80% coverage goal for cps-ui-kit, approximately 14 more components need comprehensive tests. High-impact remaining components:
High Priority - Complex Components:
Navigation & Interaction:
Tree Components:
Services:
📝 Recommended Next Steps
🔧 Infrastructure Features
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.