Skip to content

Conversation

@abdulraqeeb33
Copy link
Contributor

@abdulraqeeb33 abdulraqeeb33 commented Jan 23, 2026

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

  • Notifications
    • Display
    • Open
    • Push Processing
    • Confirm Deliveries
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes

Checklist

Overview

  • I have filled out all REQUIRED sections above
  • PR does one thing
    • If it is hard to explain how any codes changes are related to each other then it most likely needs to be more than one PR
  • Any Public API changes are explained in the PR details and conform to existing APIs

Testing

  • I have included test coverage for these changes, or explained why they are not needed
  • All automated tests pass, or I explained why that is not possible
  • I have personally tested this on my device, or explained why that is not possible

Final pass

  • Code is as readable as possible.
    • Simplify with less code, followed by splitting up code into well named functions and variables, followed by adding comments to the code.
  • I have reviewed this PR myself, ensuring it meets each checklist item
    • WIP (Work In Progress) is ok, but explain what is still in progress and what you would like feedback on. Start the PR title with "WIP" to indicate this.

This change is Reviewable

}

private fun initEssentials(context: Context) {
for (i in 0..10) {
Copy link
Contributor Author

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.

@abdulraqeeb33 abdulraqeeb33 changed the title Restrict test coverage just for the lines of code changed chore: Restrict test coverage just for the lines of code changed Jan 23, 2026
@github-actions
Copy link
Contributor

📊 Diff Coverage Report

Diff Coverage Report (Changed Lines Only)

Threshold: 80%

Changed Files Coverage

  • OneSignalImp.kt: 0/2 changed lines (0.0%) (3 changed lines)
    • ⚠️ Below threshold: 2 uncovered changed lines

Overall Coverage (Changed Lines Only)

0/2 changed lines covered (0.0%)

❌ Coverage Check Failed

Files below 80% threshold:

  • OneSignalImp.kt: 0.0% (2 uncovered changed lines)

📥 View workflow run

package_path = match.group(2)
filename = match.group(3)
package_name = package_path.replace('/', '/')
Copy link
Contributor

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

Copy link
Contributor

@jinliu9508 jinliu9508 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants