US 12,189,518 B2
Evaluation and update of test code with respect to production code changes
Sebastian Mietke, Reilingen (DE)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Feb. 17, 2022, as Appl. No. 17/674,143.
Prior Publication US 2023/0259449 A1, Aug. 17, 2023
Int. Cl. G06F 9/44 (2018.01); G06F 11/36 (2006.01)
CPC G06F 11/368 (2013.01) [G06F 11/3688 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A computing system comprising:
memory;
one or more processing units coupled to the memory; and
one or more computer readable storage media storing computer-executable instructions that, when executed, cause the computing system to perform operations comprising:
receiving user input defining a first version of test code;
receiving a request to analyze a first version of production code, the first version of test code being specified for the first version of production code, the first version of test code comprising one or more input values to be processed by the first version of production code to provide one or more output values or results;
receiving a modification to the first version of production code;
applying the modification to the first version of production code to provide modified production code;
executing the first version of test code specified for the first version of production code on the modified production code using the one or more input values of the first version of test code to provide a first output value or a first result;
by executing the computer-executable instructions, determining that a first test of a plurality of tests specified in the first version of test code was failed by the modified production code;
by executing the computer-executable instructions, identifying a condition specified in the first version of test code responsible for test code failure, the condition specifying at least one expected value or at least one expected result, the at least one expected value or at least one expected result corresponding to an output value or result of the one or more output values or results of processing at least a portion of one or more input values of the first version of test code by the modified production code;
by executing the computer-executable instructions, determining a modification to the first version of test code to update the condition such that the at least one expected value or the at least one expected result comprises, respectively, the first output value or the first result generated during execution of the first version of test code using the modified production code;
by executing the computer-executable instructions, searching the first version of test code for code specifying the condition;
by executing the computer-executable instructions, replacing at least the at least one expected value or the at least one expected result, respectively, with the first output value or the first result to provide modified test code;
by executing the computer-executable instructions, determining that at least a second test of the plurality of tests was not failed by the modified production code; and
providing a warning to a user that the at least a second test did not fail.