TDD coding to fend off distractions

The proposition — when we have a test to pass, it’s easier to focus on the task and fend off the distractions.

This was touted as a power of test-driven-development.

I tried it many times and have seldom noticed this benefit.

Warm-up period is needed in reality, we could work on that obstacle.