Identification of related test cases and overlapping code under test
AssigneeInternational Business Machines Corporation
InventorsAndrew C. M. HICKS, Michael Terrence COHOON
Life of this patent
Estimating the term…
Abstract
Method and apparatus for system testing. A code base is accessed. A first section of the code base that is explicitly covered by a first test case is identified. A second section of the code base is modified, where the second section is not explicitly covered by the first test case. The first test case is executed on the code base with the modification of the second section of the code base. Based on determining that the execution of the first test case fails, the second section of the code base is determined to be implicitly covered by the first test case.
Claims20
A method comprising:
- accessing a code base;
- identifying a first section of the code base that is explicitly covered by a first test case;
- modifying a second section of the code base, wherein the second section is not explicitly covered by the first test case;
- executing the first test case on the code base with the modification of the second section of the code base;
- and
- determining that the second section of the code base is implicitly covered by the first test case based on determining that the execution of the first test case fails.
A system comprising:
- one or more memories collectively storing computer-executable instructions;
- and
- one or more processors configured to collectively execute the computer-executable instructions and cause the system to:
- access a code base;
- identify a first section of the code base that is explicitly covered by a first test case;
- modify a second section of the code base, wherein the second section is not explicitly covered by the first test case;
- execute the first test case on the code base with the modification of the second section of the code base;
- and
- determine that the second section of the code base is implicitly covered by the first test case based on determining that the execution of the first test case fails.
A computer program product, comprising:
- a computer-readable storage medium having computer-readable program code executable to cause the computer program product to:
- access a code base;
- identify a first section of the code base that is explicitly covered by a first test case;
- modify a second section of the code base, wherein the second section is not explicitly covered by the first test case;
- execute the first test case on the code base with the modification of the second section of the code base;
- and
- determine that the second section of the code base is implicitly covered by the first test case based on determining that the execution of the first test case fails;
- and
- one or more processors, each processor of which is configured to execute at least a respective portion of the computer-readable program code.
Dependencies are inferred from the claim text.