Friday, July 15, 2005

ONJava.com: Taking JUnit Out of the Box

ONJava.com: Taking JUnit Out of the Box: "Taking JUnit Out of the Box
by Amir Shevat
07/13/2005

'Nobody likes bugs.' Most articles about testing utilities start with this sentence. And it's true--we would all like our code to act exactly as we planned it to work. But like a rebellious child, when we release our code into the world it has a tendency to act as if it has a will of its own. Fortunately, unlike in parenthood, there are things we can do to make our code behave exactly as we would like.

There are many tools designed to help up test, analyze, and debug programs. One of the most well-known tools is JUnit, a framework that helps software and QA engineers test units of code. Almost everyone that encounters JUnit has a strong feeling about it: either they like it or they don't. One of the main complaints about JUnit is that it lacks the ability to test complex scenarios."

No comments: