-
Notifications
You must be signed in to change notification settings - Fork 59
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 changemanagingentity opens bottomsheet model #3031
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3031 +/- ##
==========================================
- Coverage 64.5% 29.8% -34.7%
+ Complexity 1075 652 -423
==========================================
Files 218 236 +18
Lines 9635 11074 +1439
Branches 1897 1928 +31
==========================================
- Hits 6218 3306 -2912
- Misses 2234 7338 +5104
+ Partials 1183 430 -753
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -210,4 +222,77 @@ class ProfileViewModelTest : RobolectricTest() { | |||
profileViewModel.onEvent(event) | |||
} | |||
} | |||
|
|||
@Test | |||
fun testManagingEntityShowsProfileBottomSheetFragment() = runTest { |
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.
Rename test case to indicate what is actually being tested, what should be the expected behaviour?
E.g. testThatManagingEntityProfileBottomSheetIsShownOnActionTriggered
every { | ||
fhirPathDataExtractor.extractValue( | ||
managingEntityResource, | ||
"name", | ||
) | ||
} returns "memebr 1" | ||
every { fhirPathDataExtractor.extractValue(managingEntityResource, any()) } returns "true" |
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.
Is it possible to avoid using mocks here? fhirPathDataExtractor
is simply a utility class.
IMPORTANT: Where possible all PRs must be linked to a Github issue
CHT
Engineer Checklist
strings.xml
file./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the project's style guideCode Reviewer Checklist
strings.xml
file