Add frontend widget test coverage#758
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds initial Jest test coverage for the generic bar frontend widget by introducing a new test file. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
9ee2fad to
677e845
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive test coverage for the GenericBarWidget component, a chart widget that displays test result data in a stacked bar chart format.
- Adds 456 lines of test coverage for the GenericBarWidget component
- Includes tests for rendering, data fetching, props handling, error states, and user interactions
- Sets up appropriate mocks for PatternFly chart components, HTTP client, and internal components
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2d7e26d to
3458bf6
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (57.19%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #758 +/- ##
==========================================
+ Coverage 54.58% 57.19% +2.60%
==========================================
Files 151 151
Lines 7335 7335
Branches 652 652
==========================================
+ Hits 4004 4195 +191
+ Misses 3064 2873 -191
Partials 267 267 see 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
3458bf6 to
85c448f
Compare
85c448f to
9d60e4d
Compare
Summary by Sourcery
Tests: