Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

WIP Improve testing and refactoring code #498

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

rafaelje
Copy link
Contributor

@rafaelje rafaelje commented Jul 9, 2018

Changes description

  • At this point is important to improve the mandatory test present on the core like deeplink, enrollment, permission, user, and walkthrough

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:

  • Tests for the changes have been added
  • Docs have been added/updated

Estimated time

Assignee 🍅
@rafaelje 20

References

Closes #N/A
Related #N/A
Depends on #N/A

- 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]>
@rafaelje rafaelje added this to the 1.0 milestone Jul 9, 2018
@rafaelje rafaelje self-assigned this Jul 9, 2018
@rafaelje rafaelje requested review from ajsb85 and hectorerb July 9, 2018 22:04
@rafaelje rafaelje changed the title Improve testing and refactoring code WIP Improve testing and refactoring code Jul 9, 2018
ajsb85
ajsb85 previously approved these changes Jul 11, 2018
@ajsb85 ajsb85 requested review from CamposErik and Ivans51 and removed request for hectorerb November 20, 2018 12:24
@rafaelje rafaelje modified the milestones: 2.0, 2.1 Dec 10, 2018
Copy link
Contributor

@ajsb85 ajsb85 left a 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants