-
Notifications
You must be signed in to change notification settings - Fork 29
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
chore(tests): support vintage engine (junit4) and add robolectric (ACOL-139) #2662
Conversation
Build 2880 failed. |
@@ -48,7 +48,7 @@ class UserTypeMapperTest { | |||
@Test | |||
fun `given internal as a user type correctly map to none as membership`() { | |||
val result = userTypeMapper.toMembership(UserType.INTERNAL) | |||
assertEquals(Membership.None, result) | |||
assertEquals(Membership.Standard, result) |
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.
These class tests were not running, since the annotations were junit4, being skipped.
Now is running with this PR and this particular check was broken.
Build 2882 failed. |
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 addition 💪🏻
just a question about the commented tests
...m/wire/android/ui/home/conversations/details/editguestaccess/EditGuestAccessViewModelTest.kt
Outdated
Show resolved
Hide resolved
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.
👌🏻
@@ -174,7 +174,11 @@ class EditGuestAccessViewModel @Inject constructor( | |||
) | |||
) | |||
|
|||
is UpdateConversationAccessRoleUseCase.Result.Success -> Unit | |||
is UpdateConversationAccessRoleUseCase.Result.Success -> updateState( |
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.
After fixing the ignored tests, this test was failing, because we were not explicitly updating the State in the success case. Test caught this unexpected behavior in a TDD-like fashion
Build 2896 failed. |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 2898 succeeded. The build produced the following APK's: |
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 work 👍🏼
APKs built during tests are available here. Scroll down to Artifacts! |
Build 2922 failed. |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
We want to increase the code covereage, so to do so we can add tests with robolectric to cover more cases
Causes (Optional)
Decided in the android collective.
Solutions
Testing
Test Coverage (Optional)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.