Risks Associated with Delayed Testing in TDD

Analyze the drawbacks of postponing testing in TDD and discover its impact on code quality, design influence, and overall project success.

An alternative approach to writing tests before code is to write code first, then write tests. This lesson compares and contrasts writing tests after the code with writing tests before the code.

Test it later

One approach to writing tests involves writing chunks of code and then retrofitting tests to those pieces of code. It’s an approach that’s used in commercial programming, and the workflow can be illustrated as follows:

Get hands-on with 1400+ tech skills courses.