Test Driven Development (TDD): The Advantages and Disadvantages

Test — Code — Refactor — Test

Image for post
Image for post
Photo by David Travis on Unsplash

# TDD

Image for post
Image for post
Photo by Obi Onyeador on Unsplash

Red-Green-Refactor

Image for post
Image for post
Photo by Bahador on Unsplash
Image for post
Image for post

Advantages of TDD

Image for post
Image for post
Photo by Mathew Schwartz on Unsplash

Disadvantages of TDD

Is the business set up for TDD?

Image for post
Image for post
Photo by Ashley Jurius on Unsplash

How can we easily implement TDD in a non-modular codebase?

Conclusion

The Twitter contact:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store