The problem with unit mocking in unit testing is that the contract between the units is implicitly stored in multiple tests. It’s possible to change one unit (and its test) without updating the contract in other places. Remove mocking, and the problem is solved. 1 atbildes

Kirill Korolyov
(2020-02-20 18:27:50)
@twitter
The problem with unit mocking in unit testing is that the contract between the units is implicitly stored in multiple tests. It’s possible to change one unit (and its test) without updating the contract in other places. Remove mocking, and the problem is solved.
Kirill Korolyov
(2020-02-20 18:36:31)
@twitter
A related problem can be observed when using Redux for everything. Events and event handlers are so decoupled from each other, the contract becomes almost meaningless. Extra logic often needs to be implemented to restore the context, but the contract has no mention of it.

© 2009-2017 civciv ;)