Bryan L
05/12/2021, 12:00 AMDay 54
• Implement Tests in Daily Doc
◦ Dao tests implemented
◦ FakeRepository implemented
Self-Comment
• Tests integrated in Daily Doc Project
◦ Started to implement tests, although I have not worked on edge cases and mostly optimistic cases
• Refactor Daily Doc thoughts
◦ Most projects with tests use sealed classes with Success/Errors. I may go write some tests and refactor code to implement this for better testing. I'm not yet comfortable enough to write tests first and then refactor as I'm still unsure on if I wrote the test case correctly. With it being an existing project I still believe it makes this more difficult than easier due to potentially having to refactor more than just a single file. I suppose that's were SoC comes in. 😉
Self-Comment
• Continue testingBryan L
05/12/2021, 12:01 AMtestInstrumentationRunner "androidx.test.runner.HiltTestRunner"
With:
testInstrumentationRunner "com.lid.dailydoc.HiltTestRunner"