-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Test FHIRStore
#30
Test FHIRStore
#30
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #30 +/- ##
==========================================
+ Coverage 54.67% 54.74% +0.07%
==========================================
Files 21 21
Lines 1467 1467
==========================================
+ Hits 802 803 +1
+ Misses 665 664 -1
Continue to review full report in Codecov by Sentry.
|
This had started before you introduced |
I'm okay with sticking to XCTest for this PR, but feel free to tackle the migration to swift-testing in a separate one! 🚀 |
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.
Great PR @jdisho, thanks so much for adding all the additional test logic and fixing a small (performance) bug in the current implementation! 🚀
Only had some small comments. The tests in general are often a bit repetitive but as this is testing code I'm fine with that!
Tests/SpeziFHIRTests/FHIRStore/FHIRStoreObservationChangesTests.swift
Outdated
Show resolved
Hide resolved
Tests/SpeziFHIRTests/FHIRStore/FHIRStoreObservationChangesTests.swift
Outdated
Show resolved
Hide resolved
Thanks for the review @philippzagar! Ready for another look 👀
And yeah, these tests will get a nice cleanup once we bring in |
Perfect, thanks for adding all the tests, looking forward to the PR that will include swift-testing! 🚀 |
Test
FHIRStore
Part of #27
♻️ Current situation & Problem
This class used to have 0% code coverage 🐒
⚙️ Release Notes
FHIRStoreTests
: Tests basic CRUD operations, bundle loading, and resource managementFHIRStoreObservationChangesTests
: Verifies state changes propagate correctly between resource categories_resources
array is marked with@ObservationIgnored
to prevent changes to this array from triggering updates to all computed properties.📚 Documentation
Comments are added throughout the code.
✅ Testing
It's all about the tests.
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: