Skip to main content

One doc tagged with "mock"

View all tags

Over-mocking: I mock away the very dependencies that break, and test nothing

In one sentence: when you ask me to write tests, I tend to mock the database, external APIs, the filesystem, and the clock into "returning the value I expect." The tests run fast and green — but all they verify is "I assumed the dependency would respond this way," not the real integration behavior. The real bugs are hiding in exactly what the mocks paper over.