Testing code is important to avoid bugs but many PhD students do not rigorously test their code. This document discusses why testing is important and provides tips for effective testing strategies. It recommends having a testing plan, using unit tests, and test-driven development. Automated testing helps ensure code works as intended before and after changes. Rigorous testing adds confidence and allows code to be reused with less risk.