发明名称 Risk-based test coverage and prioritization
摘要 A processor receives a rule containing a first set of code statements. The processor compares the first set of code statements of the rule to a second set of code statements of a plurality of code statements of source code. The processor responds to a match of the first set of code statements of the rule and the second set of code statements of the plurality of code statements of the source code, by applying a weight modifier to the rule, which adds a weighted value to the rule, and the processor, in response to a second matching of the first set of code statements of the rule to the second set of code statements of the plurality of code statements of the source code, applies the weight modifier to the rule, which includes a weighted value, and the weight modifier adjusts the weighted value of the rule.
申请公布号 US9507695(B2) 申请公布日期 2016.11.29
申请号 US201414251845 申请日期 2014.04.14
申请人 International Business Machines Corporation 发明人 Rajamanickam Logeswaran T.;Ramakrishnan Arun;Shetty Rohit
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人 Simek Daniel R.
主权项 1. A method for indicating significance of tested code statements, the method comprising: a processor receiving a rule containing a first set of code statements; the processor comparing the first set of code statements of the rule to a plurality of code statements of a source code; the processor, in response to the first set of code statements of the rule matching a second set of code statements of the plurality of code statements of the source code, applying a weight modifier to the rule, wherein applying the weight modifier to the rule assigns a weighted value to the first set of code statements of the rule; the processor, in response to the first set of code statements of the rule matching a third set of code statements of the plurality of code statements of the source code, applying the weight modifier to the rule a second time, wherein the rule includes a first instance of the weighted value and the weight modifier assigns a second instance of the weighted value to the rule; the processor applying a cumulative weight value of the rule to the second set of code statements and the third set of codes statements of the plurality of code statements of the source code, wherein the cumulative weight value indicates a significance of the second set of code statements and the third set of code statements, and is based on accumulated applications of the weighted value to the rule, by the weight modifier; and the processor, in response to receiving a request for a test coverage report, displaying in the test coverage report, the cumulative weight value of the second set of code statements and the third set of code statements, of the plurality of code statements of the source code.
地址 Armonk NY US