Methods and systems for computing code coverage using grouped/filtered source classes during testing of an application
First Claim
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.
1 Assignment
0 Petitions
Accused Products
Abstract
Computer implemented methods and systems are provided for computing code coverage in a system that includes a user system and a cloud-based computing platform. The user system includes a processing system, memory and an input system that receives input parameters specified by a user of the user system. The memory can store a source class filter module executable by the processing system. Upon being executed by the processing system, the source class filter module can, based on one or more of the input parameters, group and filter source class identifiers 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. A code coverage computation unit can then 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.
152 Citations
20 Claims
-
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; anda 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; anda 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 Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method for generating targeted code coverage metrics in a cloud-based computing system comprising a user system and a cloud-based computing platform communicatively coupled to the user system, the method comprising:
-
receiving input parameters specified by a user from an input system of the user system, wherein the input parameters comprise;
one or more regular expressions specified by the user of the user system;at a processing system of the user system;
grouping and filtering 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;retrieving, via a regular expression processor, the regular expressions; generating, at a query builder, a query associated with each regular expression; at an interface of the cloud-based computing platform that interfaces with the user system;
receiving each query associated with each regular expression from the query builder;
contacting a data store of the cloud-based computing platform and finding matching source class names for each regular expression;
returning a source class identifier for each of the matching source class names to the query builder;receiving, at the query builder, the source class identifiers for each of the matching source class names, and grouping 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 computing, at a code coverage computation unit of the cloud-based computing platform, 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 Dependent Claims (14, 15, 16, 17, 18, 19)
-
-
20. A computer program product, comprising:
-
a non-transitory computer readable medium having a computer readable program code embodied therein that is readable by a processing circuit and storing instructions for execution by the processing circuit to perform a method, the method comprising; receiving input parameters specified by a user from an input system of a user system, wherein the input parameters comprise;
one or more regular expressions specified by the user of the user system;grouping and filtering source class identifiers, based on the input parameters, to generate a unique source class identifier array of filtered source class identifiers that correspond to a particular subset of all possible source classes that targeted code coverage metrics are 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; retrieving, via a regular expression processor, the regular expressions; generating, at a query builder, a query associated with each regular expression; at an interface of the cloud-based computing platform that interfaces with the user system;
receiving each query associated with each regular expression from the query builder;
contacting a data store of the cloud-based computing platform and finding matching source class names for each regular expression;
returning a source class identifier for each of the matching source class names to the query builder;receiving, at the query builder, the source class identifiers for each of the matching source class names, and grouping 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 computing, at a code coverage computation unit of the cloud-based computing platform, 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.
-
Specification