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

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay