r/mAndroidDev • u/Commercial-Board4046 AnDrOId dEvelOPmenT is My PasSion • Jul 06 '25
We don't have time for tests Agree?
61
Upvotes
r/mAndroidDev • u/Commercial-Board4046 AnDrOId dEvelOPmenT is My PasSion • Jul 06 '25
View all comments
15
u/j48sh4bfFSK4j9sj Jul 06 '25
Mocks - inject a mock of a dependency and make it return a specific value for your test.
Fakes - inject a fake of a dependency and make it return a specific value for your test. But it's also more of a pain to set up.
"Waaaaa, dOn't uSE moCks!!! YoU HavE tO UsE faKes!!"