I have not written any test. But I see most of the developers write test for each single task. This is what I feel very bad. Because, task requirement may change in the middle. You'll need to write the test again and again.
So, I would like to suggest: