-
Notifications
You must be signed in to change notification settings - Fork 25
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
Start Writing Tests #138
Comments
If you guys aren't opposed, for the user profile/registration stuff I am inclined to write some tests :) I have been into MVP patterns + JUnit + Mockito lately at work, but whatever you guys decide here I'll follow along! |
I'm sure Giorgio would appreciate the help! I was going to start by combing through the non UI files first and getting in some basic JUnit tests where I can, and take note of anywhere that can be refactored. I can defer to you on the login related files for now. :) |
Hi. Can I help with this issue? |
… the test methods.
Sure! Any help is appreciated, we don't have a lot of test coverage yet. Feel free to see #140 for what we have now. The tests are mostly for data classes. I looked inside the
Personally, I like the second option, but that might be tricky. If we want to do that, I think we can divide the work by package. Example: I could take the Does this seem like a good way to split work? |
Sorry for the late reply. I would actually like to go with the second approach as it would allow better testability and extensibility in the future. We can use MVVM/MVI to structure the code. |
Speaker module would be good as well. |
Haha no worries, we've all been there. Happy to help refactor it now. :) |
Have refactored the speaker module using architecture components. Yet to write tests (facing some difficulties with testing along firebase dependencies). Help/reviews welcome https://github.com/GurpreetSK95/conference-app-android/tree/gs/speakers-refactor |
What part about testing with firebase? I did some firebase mocking in my branch that's up for PR. Maybe once it's merged you'll have some inspiration? I learned how to mock firebase database calls like this: https://stackoverflow.com/a/43227989/3131147 |
…I changed back to normal for Droidcon-Boston#138.
… the test methods.
…I changed back to normal for Droidcon-Boston#138.
…I changed back to normal for Droidcon-Boston#138.
Creating a broad ticket to write some tests for our existing functionality. Haven't begun to dug into this so I'm not sure what will happen yet, but this is to track progress.
The text was updated successfully, but these errors were encountered: