×

Automatic regression testing based on cyclomatic complexity

  • US 8,959,486 B2
  • Filed: 01/09/2013
  • Issued: 02/17/2015
  • Est. Priority Date: 01/09/2013
  • Status: Expired due to Fees
First Claim
Patent Images

1. A processor-implemented method of automating regression testing, the processor-implemented method comprising:

  • identifying, by a processor, a base code change in a software program;

    receiving, by the processor, a string of binary data that represents a cyclomatic complexity of the base code change, wherein the cyclomatic complexity of the base code change is defined by a formula;

    M=E−

    N+Pwhere E=a quantity number of edges in a graph of the base code change,N=a quantity of nodes in the graph of the base code change, andP=a quantity of exit nodes depicted in the graph of the base code change;

    mapping, by the processor, the base code change to different software test routines, wherein the different software test routines have been predetermined to test changes to the software program; and

    executing, by the processor, a quantity of the different software test routines on the base code change to automatically perform regression testing on the software program, wherein the quantity of the different software test routines that are executed on the base code change is determined by the cyclomatic complexity of the base code change.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×