Patent ID: 8291384

Claim:
A method for measuring software testing comprehensiveness, comprising: identifying a subset of a software application's basic blocks for testing evaluation; identifying all conditional branches entering and exiting the identified basic blocks; assigning a base priority value to each basic block; assigning a user-defined priority adjustment to the identified subset of basic blocks; calculating a weighted code coverage score for each basic block, including the identified subset, the score including the base priority value, the user-defined priority adjustment value, and a proximity value, the proximity value of a basic block based upon a proximity of the basic block to other basic blocks with a non-zero user-defined priority value; aggregating the weighted code coverage scores for each basic block; defining a weighted code coverage goal for testing the software application; measuring execution for each basic block during test execution, and aggregating the weighted code coverage scores of all executed basic blocks; meeting the defined weighted code coverage goal when the aggregated scores of executed blocks at least meet the defined code coverage goal.