Wednesday, November 19, 2008

Test Harnesses

Today, I've been writing test harnesses. Test harnesses are a really good habit to develop if you're a programmer. Basically, a test harness takes a given piece of code, and starts thrashing the candy out of it. If the code doesn't break, it passes. This is good, because it enables you to find bugs right from the point they are created and before that piece of code is injected into the system.

It's actually quite fun to break other people's code as well...

No comments:

Post a Comment