发明名称 System and method for determining test coverage
摘要 A computer-implemented method, computer program product, and system is provided for determining test coverage. In an implementation, a method may include identifying at least one change in source code. The method may also include instrumenting object code of at least one class file associated with a source file of the source code associated with the identified at least one change. The method may further include testing the instrumented object code with at least one test case. The method may further include generating a coverage report associated with the instrumented object code, wherein the coverage report includes a proportion of the at least one change in the source code covered by the at least one test case.
申请公布号 US9477580(B2) 申请公布日期 2016.10.25
申请号 US201414223122 申请日期 2014.03.24
申请人 International Business Machines Corporation 发明人 Chan Philip S. P.;Hey Laurence A.;Izard William J.;Ponsford Matthew J.
分类号 G06F11/00;G06F9/44;G06F9/45;G06F11/36;G06F9/445 主分类号 G06F11/00
代理机构 Holland & Knight LLP 代理人 Colandreo, Esq. Brian J.;Placker, Esq. Jeffrey T.;Holland & Knight LLP
主权项 1. A computer-implemented method comprising: identifying, by a processor, at least one change in source code; identifying, by the processor, object code of at least one class file associated with a source file of the source code associated with the identified at least one change, wherein the object code of at least one class file is a compiled file of the source code; instrumenting, by the processor, the object code of the at least one class file associated with the source file of the source code associated with the identified at least one change; inserting a counter into the object code of the at least one class file associated with the source file of the source code associated with the identified at least one change, wherein the counter is increased each time a portion of an instruction associated with the object code is executed; testing, by the processor, the instrumented object code with at least one test case; and generating, by the processor, a coverage report associated with the instrumented object code, wherein the coverage report includes a proportion of the at least one change in the source code covered by the at least one test case.
地址 Armonk NY US