-
-
Notifications
You must be signed in to change notification settings - Fork 841
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
fix: improve code coverage for src/screens/OrgPost/OrgPost.test.tsx #1165
Conversation
Our Pull Request Approval ProcessWe have these basic policies to make the approval process smoother for our volunteer team. Testing Your CodePlease make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:
The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing. ReviewersWhen your PR has been assigned reviewers contact them to get your code reviewed and approved via:
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
Thanks. Please also get the test code coverage for the typescript files you edited up to 100% We are trying to get back up to 95% coverage overall to ensure the reliability of our code. |
A test is failing because of incomplete code coverage in components outside the scope of this issue. |
Yes, that's what i meant. The file in the linked report is src/components/OrgPostCard/OrgPostCard.tsx, and the file associated with this issue is src/screens/OrgPost/OrgPost.tsx #1136. The test is failing because of incomplete coverage in other component files. Those components have their separate issues open which are assigned to other contributors. |
Comment on this issue for that file so that we can assign it to you. Fix both issues with this PR. |
According to the code coverage report this PR will get us over 95% coverage which will stop the errors in future. This PR was supposed to get us over 95% which is why it was merged with the error failure. 95% coverage is our goal. Why do you think the coverage isn't crossing the threshold? |
I have commented on that issue, i'll try to fix that and see if the tests are passing then. |
I spoke too soon. I wasn't paying sufficient attention.
In the past CodeCov has been similarly temperamental, so we have been merging test PRs for the sake of speed expecting the overall coverage to be under 95% We will be more stringent after we reach this goal. |
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1165 +/- ##
===========================================
+ Coverage 94.77% 95.46% +0.69%
===========================================
Files 138 138
Lines 3327 3328 +1
Branches 923 923
===========================================
+ Hits 3153 3177 +24
+ Misses 167 144 -23
Partials 7 7 ☔ View full report in Codecov by Sentry. |
I've asked some others to review this and merge if acceptable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Oops!!, I accidentally clicked the refresh button which sent out another review request to you @noman2002. Please ignore it. My apologies for the confusion. |
What kind of change does this PR introduce?
Added code coverage for src/screens/OrgPost/OrgPost.test.tsx
Issue Number:
Fixes #1136
Fixes #1029
Did you add tests for your changes?
Yes
Does this PR introduce a breaking change?
No
Have you read the contributing guide?
Yes