Testing · Junior · Question 39 of 78

What is a risk of mocking too much?

Explanation

Every mock is an assumption about how the real dependency behaves. Mock the boundaries (network, time, randomness), not your own modules.

Further reading

Problem with a question

Testing · Junior · question 39

Test yourself

Take the Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz