4 ms·
There's a smell in the code but it's not the mocks. I've seen people have problems with mocks when they have poorly designed code that demands Byzantine test s
by drewcoo 3y ago
There's a smell in the code but it's not the mocks.
I've seen people have problems with mocks when they have poorly designed code that demands Byzantine test setups. The "bad mocks" smell usually means the production code is due for a refactor. (So let's hope you have behavioral tests and not implementation-only tests to help everyone refactor.)