Week 13, 2020 - Why TDD?

Why TDD? I think I found the best answer in Eric Elliott’s article TDD Changed My Life:

TDD eradicates fear of change.

According to researches using TDD can improve test coverage1, which leads to 40%-80% fewer bugs2 in production.

TDD has a learning curve, and while you’re climbing that learning curve, it can and frequently does add 15%-35% to implementation times3. But eventually you start coding faster with unit tests than you ever did without them.

  1. https://ieeexplore.ieee.org/abstract/document/4343755 

  2. https://www.researchgate.net/publication/3249271_Guest_Editors’_Introduction_TDD–The_Art_of_Fearless_Programming 

  3. https://www.infoq.com/news/2009/03/TDD-Improves-Quality