×

Testing flow control at test assertion level

  • US 7,284,237 B2
  • Filed: 11/26/2003
  • Issued: 10/16/2007
  • Est. Priority Date: 11/26/2003
  • Status: Active Grant
First Claim
Patent Images

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

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×