From the beginning? Not. That's completely counterproductive.
The first thing you have to do is be sure that you are testing the correct thing. Only after it you write your tests down.
Specs come before tests, and on most problems you will need to write a lot of code before your get the specs down.
From the beginning? Not. That's completely counterproductive.
The first thing you have to do is be sure that you are testing the correct thing. Only after it you write your tests down.
Specs come before tests, and on most problems you will need to write a lot of code before your get the specs down.