I am learning Drupal and come across the testing part. What I don't understand is why we do testing. I have read up on some links like this one What are unit tests and why should I care?. I understand such tests are to ensure that we get what we want to get. My problem is that when we write the code, we already have tested the code to make sure it parse correctly, not producing error messages, and also producing the correct results. We can see the correct results with our eyes, and we can try some inputs to make sure the extreme data are tested. So what is the difference between these (normal) testings and unit tests?
Let me rephrased my question. I know it is important to do unit testing because it makes the program reliable etc.. What I don't understand is that when we do a run a program, we already ensure it produces the result we are expecting. So what improvements does unit test brings in? To test things that are already right?
I know I am missing something. But I can't figure out what I am missing.