DEV Community

Alex Pushkarev
Alex Pushkarev

Posted on

2 1

Which TDD school is better? 🤔

There're at least two major schools of TDD: 🇬🇧London(outside-in) and Chicago 🇺🇸 (inside-out) and several other schools which considered less influential. Which one is better?

I believe it's none. Let me explain!

Image description

London School of TDD suggests you start with an Acceptance-level test and then go to a lower level testing/implementation. Since inevitably you would be writing code which calls non-existing code you will rely more on mocking and you will need some kind of rough overall general design of a code you're going to write.

Chicago School in contrast suggests starting with the smallest possible requirement and then gradually and incrementally increasing the scope.

Other schools (like twitter-style TDD) could suggest ignoring smaller ("unit") tests entirely.

So which one is better? In fact, it is the wrong way to frame question. The better way would be to ask: Which would make sense to use now?

You see, different schools of TDD has something different to offer in every other case!

Want to know more? Feel free to follow me here and on my YouTube channel: https://www.youtube.com/channel/UCkJRvCK2-l2gCuPT9-HUG7A

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay