Patent ID: 7284237

Claim:
A method comprising: providing a test hierarchy implemented in a common source unit including production source code and test source code, the test hierarchy including a collection of test methods, a test method in the collection of test methods including test source code specifying a call to a test assertion method for testing the production source code, the test assertion call defining a test execution flow within the test hierarchy in an event of a failure; and controlling the test execution flow inside the test hierarchy in the event of failure according to a parameter value of the call to the test assertion method, the parameter values available for controlling the test execution flow including values specifying: continuing the test execution flow with a next statement in the test method; interrupting the test execution flow of the test method and continuing the test execution flow with any remaining test methods in the test hierarchy; and interrupting the test execution flow of a test class containing the test method and continuing the test execution flow with any remaining test classes in the test hierarchy.