google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
482 stars 283 forks source link

Should FhirEngineProviderTestRule be part of the SDK? #1699

Open vitorpamplona opened 1 year ago

vitorpamplona commented 1 year ago

Is your feature request related to a problem? Please describe. Applications that use the SDK will need to set up unit testing schemes involving the local database. Utility classes for testing purposes can help users structure their testing needs. FhirEngineProviderTestRule is a simple class that clears the database after every test run. It's essential not only for this project's unit tests but to all users of this library.

Describe the solution you'd like Distribute utility classes for testing purposes as a maven repo either as an Android-Fhir package for testing or inside the SDK itself.

Describe alternatives you've considered Copy/paste the class to my application. It works but is not ideal.

Additional context Add any other context or screenshots about the feature request here.

Would you like to work on the issue? Please state if this issue should be assigned to you or who you think could help to solve this issue.

jingtang10 commented 8 months ago

i think this feature request makes sense