# The Architecture effect of Test Driven Development

DevFeed: [The Architecture effect of Test Driven Development](<https://devfeed.tech/articles/the-architecture-effect-of-test-driven-development-30578.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2015/04/the-architecture-effect-of-test-driven-development/>)

Published: 2015-04-03T07:00:00Z

Content type: opinion

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Android](<https://devfeed.tech/topics/android.md>), [Development](<https://devfeed.tech/topics/development.md>), [Code](<https://devfeed.tech/topics/code.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [approach](<https://devfeed.tech/tags/approach.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [software](<https://devfeed.tech/tags/software.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

The author describes adopting a test-first approach in an Android client project and explains an unexpected benefit: writing tests to define requirements encourages more deliberate architectural decisions. Tests enable designing an API, validating it with a mocked implementation, and identifying code that is not properly encapsulated.

## Source excerpt

I've finally done it. In the latest client project I'm working on I've decided to take a test first approach. I've been wanting to experience Test Driven Development on Android for years, but have never felt comfortable enough to really commit. After reading through Kent Beck's book and checking out Corey Latislaw's latest book, I decided I was ready to make the leap. I'll write some more later about my experience, reactions, and what I've learned, but today I wanted to share a slightly unexpected benefit.