# Why Would you Write Tests before Code?

DevFeed: [Why Would you Write Tests before Code?](<https://devfeed.tech/articles/why-would-you-write-tests-before-code-28441.md>)

Original publisher: [Read original article](<https://craftingtechteams.substack.com/p/why-would-you-write-tests-before>)

Author: Denis Čahuk

Published: 2025-02-13T17:42:58Z

Content type: opinion

Language: en

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

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>)

Tags: [development](<https://devfeed.tech/tags/development.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [performance-testing](<https://devfeed.tech/tags/performance-testing.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

## AI overview

The article explains test-driven development as writing tests before implementation to create refactoring capability early. It distinguishes capability testing, which verifies intended feature behavior, from regression testing, which records unexpected user-replicated behavior, and argues that TDD adoption depends more on a mindset shift toward higher-quality delivery than on additional workshops.

## Source excerpt

The Test-Driven Elephant In The Room