Skip to content
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

Experimental implementation of using a FakeClass for mock database interactions #1

Open
wants to merge 9 commits into
base: reference
Choose a base branch
from

Conversation

shalomhalbert
Copy link
Owner

While trying to create a fake class in the Monster app's codebase, I realized implementing the experiment on a smaller codebase would be much easier to understand.

The sample app on which this PR was made conforms to Monster's architecture. Specifically, I use Kotlin, Coroutines, Koin, and MVVM.

While implementing a fake class can be time consuming, the resulting unit tests are significantly more readable than what we're producing with our current approach. Also, with the help of Koin, creating Unit tests using fakes is super easy.

Looking forward to hearing feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant