You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Christian Gesell edited this page Nov 3, 2017
·
1 revision
Mocks Can Leave You Tightly Coupled to the Implementation
We usually say it’s better to test behaviour, not implementation details; test what happens, not how you do it. Mocks often end up erring too much on the side of the "how" rather than the "what".
->
There’s more detailed discussion of the pros and cons of mocks in later chapters. ->