DEV Community

Discussion on: Clean, DRY, SOLID Spaghetti

 
codemouse92 profile image
Jason C. McDonald • Edited

[The] purpose of writing tests in TDD is to define the expected behaviour.

...and...

Refactoring is an essential part of the process and cannot be done (most of the time) safely without tests.

I probably didn't say, but that was beautifully concise. You really should write an article about the goal of TDD. Many developers seem to lose sight of it a lot. ;)