arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1512.07435cs.SE
收藏

变化影响预测的学习算法

A Learning Algorithm for Change Impact Prediction

Vincenzo Musco, Antonin Carette, Martin Monperrus, Philippe Preux

摘要:

变更影响分析包括预测软件应用程序中代码变更的影响。在本文中,我们采取了学习的角度对变化的影响分析,并考虑制定如下的问题。考虑的工件是面向对象软件的方法,研究中的变更是方法代码的变更,影响是由于已执行的变更而失败的测试方法。我们提出了一种称为LCIP的算法,它可以从过去的影响中学习,以预测未来的影响。为了评估我们的系统,我们考虑了7个Java软件应用程序,总计214,000多行代码。我们通过代码突变模拟了17574个更改及其实际影响,就像在突变测试中所做的那样。我们发现,LCIP可以预测的影响,准确率为69%,召回率为79%,对应的F分数为55%。

英文摘要:

Change impact analysis consists in predicting the impact of a code change in a software application. In this paper, we take a learning perspective on change impact analysis and consider the problem formulated as follows. The artifacts that are considered are methods of object-oriented software, the change under study is a change in the code of the method, the impact is the test methods that fail because of the change that has been performed. We propose an algorithm, called LCIP that learns from past impacts to predict future impacts. To evaluate our system, we consider 7 Java software applications totaling 214,000+ lines of code. We simulate 17574 changes and their actual impact through code mutations, as done in mutation testing. We find that LCIP can predict the impact with a precision of 69%, a recall of 79%, corresponding to a F-Score of 55%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑