Testing Can Save Time
“How?” you ask. By reducing the amount of time you spend debugging. By building tests into your code, and structuring these tests so that they check themselves, you create a test that is as easy to run as the application itself. When tests are easy to run, you'll find yourself running them all the time. Each successful test will give you a little jolt of confidence in your code. You'll also uncover bugs earlier and fix them more easily than you'd be able to without constant testing. All told, you'll spend far less time debugging, and will therefore develop better code more quickly.
It's a common misconception that most of the time spent developing software is spent coding. Actually, more time is spent debugging than coding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access