×

Method and apparatus for mining test coverage data

  • US 9,454,467 B2
  • Filed: 08/12/2014
  • Issued: 09/27/2016
  • Est. Priority Date: 12/12/2013
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method of mining test coverage data, comprising:

  • at a device having one or more processors and memory;

    sequentially generating a plurality of coverage data files by executing a program using a respective test input of a plurality of test inputs, wherein the program includes a plurality of code blocks, each code block being either executed as a whole or not executed at all during the execution of the program;

    after generating the plurality of coverage data files, processing a current coverage data file by extracting respective execution counter data from the current coverage data file, wherein each code block has a counter for recording execution counter value associated with the code block and the execution counter values associated with the plurality of code blocks collectively form a counter value list;

    after processing the current coverage data file, determining whether the respective execution counter data from a current counter value list extracted from the current coverage data file includes a predetermined change relative to the respective execution counter data from a previous counter value list extracted from previously processed coverage data files, further comprising;

    determining whether the respective test input used to generate the current coverage data file has caused a respective counter for at least one code block in the program to change; and

    in response to detecting the predetermined change for the current coverage data file;

    including the respective test input used to generate the current coverage data file in a test input collection for testing the program; and

    updating the counter value list with the respective execution counter data extracted from the current coverage data file.

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