# Understanding Mocks, Stubs, Fakes, and Shunts in Test-Driven Development

DevFeed: [Understanding Mocks, Stubs, Fakes, and Shunts in Test-Driven Development](<https://devfeed.tech/articles/tdd-mocks-fakes-stubs-doubles-shunts-ayayay-28436.md>)

Original publisher: [Read original article](<https://craftingtechteams.substack.com/p/tdd-mocks-fakes-stubs-doubles-shunts>)

Author: Denis Čahuk

Published: 2025-07-21T08:05:36Z

Content type: article

Language: en

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

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

Tags: [mocking](<https://devfeed.tech/tags/mocking.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [video](<https://devfeed.tech/tags/video.md>)

## AI overview

A recording from Denis Čahuk's live video explains the differences between mocks, stubs, fakes, and shunts, and examines how overusing or misunderstanding test doubles can create tangled tests. It discusses testing outgoing commands with mocks and how difficult mocking setups may indicate design problems.

## Source excerpt

A recording from Denis Čahuk's live video