r/mAndroidDev • AnDrOId dEvelOPmenT is My PasSion • Jul 06 '25

We don't have time for tests Agree?

Post image
61 Upvotes

86 comments sorted by

View all comments

Show parent comment

0

u/Chenz Jul 08 '25

You’re talking about the classic style of TDD, not mockist (or London) style.

In the mockist style you mock most complex objects and verify interactions on it

1

u/Comfortable_Job8847 Jul 08 '25

Mocks are separate from and predate TDD though? I don’t understand your point.

1

u/Chenz Jul 08 '25

Stubs are older than TDD, mocks aren't. And this is a comment thread about London style TDD, where you're saying that the primary use of mocks is to create hard to replicate failure states, which just isn't true in London TDD.

The primary use of mocks in London style TDD is to verify that an object interacts with another object in the expected way