-
Notifications
You must be signed in to change notification settings - Fork 376
chore: Restrict test coverage just for the lines of code changed #2527
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: main
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| private fun initEssentials(context: Context) { | ||
| for (i in 0..10) { |
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.
Added dummy code, i will get rid of it after testing.
📊 Diff Coverage ReportDiff Coverage Report (Changed Lines Only)Threshold: 80% Changed Files Coverage
Overall Coverage (Changed Lines Only)0/2 changed lines covered (0.0%) ❌ Coverage Check FailedFiles below 80% threshold:
|
| package_path = match.group(2) | ||
| filename = match.group(3) | ||
| package_name = package_path.replace('/', '/') |
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.
Not in the change but it looks like this line doesn't do anything
jinliu9508
left a comment
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.
Looks good to me. Make sure to remove the dummy code in OneSignalImp.kt
Description
One Line Summary
Restrict test coverage just for the lines of code changed
Details
Motivation
Earlier the file that was touched was entirely checked for test coverage. We just need to check the lines added/modified if it has test coverage in place.
Scope
Test Coverage Script
Testing
Unit testing
Added some code and tried to test it out.
Manual testing
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is