×

Methods and systems for computing code coverage using grouped/filtered source classes during testing of an application

  • US 10,114,737 B2
  • Filed: 04/28/2016
  • Issued: 10/30/2018
  • Est. Priority Date: 09/14/2015
  • Status: Active Grant
First Claim
Patent Images

1. A system, comprising:

  • a user system, comprising;

    an input system configured to receive input parameters specified by a user of the user system, wherein the input parameters comprise;

    one or more regular expressions specified by the user of the user system;

    a processing system; and

    memory configured to store;

    a source class filter module executable by the processing system, wherein the source class filter module, upon being executed by the processing system;

    is configured to;

    group and filter source class identifiers, based on one or more of the input parameters, to generate a unique source class identifier array of filtered source class identifiers that correspond to a particular subset of source classes that targeted code coverage metrics are to be computed for during code coverage computations when testing an application, wherein each regular expression is a pattern that is used to perform a pattern match to identify a particular group of one or more source class identifiers associated with that regular expression that each correspond to a source class name of a source class, and wherein the source class filter module comprises;

    a first source class fetcher comprising;

    a regular expression processor configured to receive the regular expressions input by the user of the user system; and

    a query builder configured to;

    generate a query associated with each regular expression; and

    a cloud-based computing platform, communicatively coupled to the user system, and comprising;

    an interface that interfaces with the source class filter module, wherein the quay builder is configured to;

    send each query associated with each regular expression to the interface, wherein the interface is configured to receive each query, contact a data store of the cloud-based computing platform and find matching source class names for each regular expression, and return a source class identifier for each of the matching source class names to the query builder, and wherein the query builder is further configured to receive the source class identifiers for each of the matching source class names, and group the source class identifiers corresponding to each of the regular expressions into a first source class identifier array of the unique source class identifier array; and

    a code coverage computation unit that is configured to compute the targeted code coverage metrics for the particular subset of source classes corresponding to the filtered source class identifiers of the unique source class identifier array, wherein the particular subset of source classes correspond to a particular subset of source code of the application.

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