发明名称 Software unit test immunity index
摘要 The present disclosure describes methods, systems, and computer program products for measuring strength of a unit test. One computer-implemented method includes receiving software unit source code associated with a unit test, analyzing a line of the software unit source code for removability, initiating, by operation of a computer, modification of the software unit source code to remove the line of the software unit source code and create a modified software unit, initiating execution of the modified software unit using the unit test, determining success or failure of a unit test execution, and analyzing a next line of the software unit source code for removability.
申请公布号 US9329978(B2) 申请公布日期 2016.05.03
申请号 US201313971001 申请日期 2013.08.20
申请人 SAP Portals Israel Ltd 发明人 Kadishay Yotam
分类号 G06F11/36 主分类号 G06F11/36
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A computer-implemented method comprising: receiving software unit source code associated with a unit test; analyzing a line of the software unit source code to determine removability of the line of the software unit source code; initiating, by operation of a computer, modification of the software unit source code to remove the line of the software unit source code and create a modified software unit; initiating execution of the modified software unit using the unit test; determining success or failure of a unit test execution; and analyzing remaining lines of the software unit source code for removability; generating a unit test immunity index value as a ratio of unit test execution failures to a number of lines of the software unit source code determined to be removable, wherein a failure of a unit test execution indicates that a removed line of software unit code is essential for proper testing of software unit source code; and based on the generated unit test immunity index, performing additional testing of particular logic associated with one or more lines of software unit source code that caused a failure of a unit test execution when removed from the software unit source code.
地址 Ra'anana IL
您可能感兴趣的专利