Skip to content
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

[Tests] Switch to kotest-extensions-android #2023

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

jkasten2
Copy link
Member

@jkasten2 jkasten2 commented Mar 7, 2024

Description

One Line Summary

In our tests, move off our locally patched kotest-extensions-robolectric to kotest-extensions-android.

Details

Motivation

Using a locally patch library makes our tests more complex and harder to get patches when fixes are released.

Scope

Affects tests using robolectric. Also bump our Android Min SDK to 21 (Android 5.0) as required by the new library.

Background

We worked with the of the developers who worked on kotest-extensions-robolectric to get our patches to into a new kotest-extensions-android library. Our discussion in LeoColman/kotest-android#2

Testing

Unit testing

Scope above covers this.

Manual testing

Ensured the example app still builds after our Android Min SDK bump.

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
  • 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.
  • I have reviewed this PR myself, ensuring it meets each checklist item

This change is Reviewable

Move off our custom patched kotest-extensions-robolectric to the
kotest-extensions-android library. This is a newly released library
based off the patches we shared with the original developer. Switching
over to kotest-extensions-android means we can remove this complexity
from our project and can easily update the library to get fixes.

We had to bump our minSdkVersion to 21 (Android 5.0) to use this library
however we only officially supported Android 5.0 and newer since v5 of
our SDK anyway.
Base automatically changed from fix/always-initWithContext-on-process-entry-points to main March 12, 2024 17:40
@jkasten2 jkasten2 merged commit d795bff into main Mar 12, 2024
2 checks passed
@jkasten2 jkasten2 deleted the tests/switch-to-kotest-extensions-android branch March 12, 2024 17:40
@jkasten2 jkasten2 mentioned this pull request Mar 29, 2024
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.

2 participants