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 ...

Get Guru's Guide to SQL Server™ Stored Procedures, XML, and HTML, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.