# How Mocking Affects Software Design and Testability

DevFeed: [How Mocking Affects Software Design and Testability](<https://devfeed.tech/articles/every-mock-is-a-bet-against-your-design-28430.md>)

Original publisher: [Read original article](<https://craftingtechteams.substack.com/p/recording-every-mock-is-a-bet-against>)

Author: Denis Čahuk

Published: 2025-07-19T07:45:14Z

Content type: tutorial

Language: en

Sources: [Crafting Tech Teams](<https://devfeed.tech/sources/crafting-tech-teams.md>)

Topics: [Mocking](<https://devfeed.tech/topics/mocking.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>)

Tags: [coverage](<https://devfeed.tech/tags/coverage.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A recorded talk examines when mocks are useful, common misconceptions about mocking and TDD, and how excessive or poorly chosen mocks can constrain software design and testability. It discusses multi-mock tests, database mocking, and designing narrow seams around dependencies.

## Source excerpt

If you've ever felt like your tests get in the way of refactoring, or like mocks make everything harder rather than simpler this stream is for you.