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

Add the option to initialize the ResourceDao for testing. #17

Closed
wants to merge 14 commits into from
Closed

Add the option to initialize the ResourceDao for testing. #17

wants to merge 14 commits into from

Conversation

lucaspal
Copy link
Contributor

@lucaspal lucaspal commented Aug 4, 2021

Scope of the PR
Add an additional optional value to state that the ResourceDao is being used for testing.
This is using sqflite_common_ffi under the hood to mock the underlying sqflite database.

Goal
Make it easier to write integration tests for functionalities that use the fhir_db.

What is the additional noise
I pulled main into dev to make sure that we are not missing any functionality that has been merged directly into main without being merged to dev first.
This is the reason you see changes in files that are not in the scope of this PR.

Edit:

If this is fine I can add myself the same changes in the other places (dstu2 ,r4, ...)

Dokotela added a commit that referenced this pull request Aug 5, 2021
fhir_auth export package consistency
@Dokotela
Copy link
Collaborator

Ended up adding this manually, but should now be included. Let me know if there are issues!

@Dokotela Dokotela closed this Aug 30, 2021
@lucaspal lucaspal deleted the add-custom-db-factory-for-testing branch September 7, 2021 06:42
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