This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 91
WIP Improve testing and refactoring code #498
Open
rafaelje
wants to merge
7
commits into
develop
Choose a base branch
from
feature/order
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Rafa Hernandez <[email protected]>
Signed-off-by: Rafa Hernandez <[email protected]>
Signed-off-by: Rafa Hernandez <[email protected]>
- implement compile option with java 1.8 - add test powermock library for Base64 static testing - add roboelectric library for Android Context testing Signed-off-by: Rafa Hernandez <[email protected]>
… presenter Signed-off-by: Rafa Hernandez <[email protected]>
rafaelje
changed the title
Improve testing and refactoring code
WIP Improve testing and refactoring code
Jul 9, 2018
ajsb85
previously approved these changes
Jul 11, 2018
Signed-off-by: Rafa Hernandez <[email protected]>
Signed-off-by: Rafa Hernandez <[email protected]>
ajsb85
requested review from
CamposErik and
Ivans51
and removed request for
hectorerb
November 20, 2018 12:24
ajsb85
reviewed
Dec 18, 2018
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.
Hi, @rafaelje
Do you have plan to continue with this PR?
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes description
The most important test on this PR is enrollment and deeplink.
The agent has a complete MVP pattern and these tests were created with the instrumented test wish make slow, in this PR I'm moving the model and presenter from instrumented test to unit test with a more clear idea for contributors.
With support for these tools on gradle just available for testing purpose:
Powermock
To mock static class
Robolectric
To create a real Android Context with out instrumented test
Mockito
To create basic mocks
Checklist
Please check if your PR fulfills the following specifications:
Estimated time
References
Closes #N/A
Related #N/A
Depends on #N/A