Test case reduction for code regression testing
AssigneeDevFactory FZ-LLC
InventorsJoseph A. Liemandt, Rahul Subramaniam, Samy Aboel-Nil
Life of this patent
Estimating the term…
Abstract
In at least one embodiment, a system performs regression testing of software using selected test cases. In at least one embodiment, the system selects the test case for regression testing based on whether the test case correlates with modified code. In at least one embodiment, a test case correlates with the modified code if the test case tests all or a proper subset of the modified code. In at least one embodiment, if a test case does not test any of the modified code, then the test case is not used in the regression testing of the modified code.
Claims24
A method testing code after modification of multiple portions of the code, the method comprising:
- performing by a computer system programmed with code stored in a memory and executable by a processor of the computer system for:
- accessing the code after modification of the multiple portions of the code, which includes modification of multiple classes of the code;
- determining which of the multiple portions of the code, including the modified multiple classes, were modified;
- accessing data correlating one or more test cases to respective portions of the code, wherein each test case that is correlated to a portion of the code tests the correlated portion of code during a test of the code;
- identifying one or more correlated test cases, wherein the correlated test cases are the one or more test cases that correlate with the multiple portions of the code, including the multiple classes, that were modified;
- iterating through multiple test cases to determine which of the multiple test cases are prerequisites to the one or more identified correlated test cases;
- continue iterating through the multiple test cases to determine which of the multiple tests cases are prerequisites to the one or more determined prerequisite test cases;
- repeating the continue iterating element until all prerequisite test cases are determined;
- and
- testing the code using only the one or more correlated test cases and the one or more prerequisite test cases.
A data processing system comprising:
- a processor;
- and
- a memory, coupled to the processor, that includes code stored therein and executable by the processor to test the code after modification of multiple portions of the code, which modification of multiple classes of the code, and to transform the data processing system into a testing system for:
- accessing the code after modification of the multiple portions of the code, which includes modification of multiple classes of the code;
- determining which of the multiple portions of the code, including multiple classes, were modified;
- accessing data correlating one or more test cases to respective portions of the code, wherein each test case that is correlated to a portion of the code tests the correlated portion of code during a test of the code;
- identifying one or more correlated test cases, wherein the correlated test cases are the one or more test cases that correlate with the multiple portions of the code, including the multiple classes, that were modified;
- iterating through multiple test cases to determine which of the multiple test cases are prerequisites to the one or more identified correlated test cases;
- continue iterating through the multiple test cases to determine which of the multiple tests cases are prerequisites to the one or more determined prerequisite test cases;
- repeating the continue iterating element until all prerequisite test cases are determined;
- and
- testing the code using only the one or more correlated test cases and the one or more prerequisite test cases.
A non-transitory computer readable medium comprising code stored therein and executable by a processor to test the code after modification of multiple portions of the code, which includes modification of multiple classes of the code, and to transform a data processing system into a testing system for:
- accessing the code after modification of the multiple portions of the code, which includes modification of multiple classes of the code;
- determining which of the multiple portions of the code, including multiple classes, were modified;
- accessing data correlating one or more test cases to respective portions of the code, wherein each test case that is correlated to a portion of the code tests the correlated portion of the code during a test of the code;
- identifying one or more correlated test cases, wherein the correlated test cases are the one or more test cases that correlate with the multiple portions of the code, including the multiple classes, that were modified;
- iterating through multiple test cases to determine which of the multiple test cases are prerequisites to the one or more identified correlated test cases;
- continue iterating through the multiple test cases to determine which of the multiple tests cases are prerequisites to the one or more determined prerequisite test cases;
- repeating the continue iterating element until all prerequisite test cases are determined;
- and
- testing the code using only the one or more correlated test cases and the one or more prerequisite test cases.
Dependencies are inferred from the claim text.