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

使用因果推理和贝叶斯统计解释测试套件暴露软件故障的能力

Using causal inference and Bayesian statistics to explain the capability of a test suite in exposing software faults

Alireza Aghamohammadi, Seyed-Hassan Mirian-Hosseinabadi

摘要:

测试有效性是指测试套件暴露软件中错误的能力。了解影响这种能力的因素至关重要。我们的目标是推断这两个因素之间的因果关系(即,Cover/Exec)以及测试套件暴露和发现软件中错误的能力。Cover指的是覆盖语句的不同测试用例的数量,而Exec等于测试套件执行语句的次数。我们分析了来自{12} Java程序的459166个软件故障。贝叶斯统计与后门标准一起被用于因果推理的目的。此外,我们研究了测量关联的常见陷阱,因果关系和非因果关系的混合,而不是因果关联。结果表明,Cover与\textit{Exec}之间的因果关系更强,且Cover与\textit{Exec}之间的因果关系和非因果关系存在统计学差异。软件开发人员可以利用这些结果来设计和编写更有效的测试用例,从而发现更多隐藏在软件中的错误。

英文摘要:

Test effectiveness refers to the capability of a test suite in exposing faults in software. It is crucial to be aware of factors that influence this capability. We aim at inferring the causal relationship between the two factors (i.e., Cover/Exec) and the capability of a test suite to expose and discover faults in software. Cover refers to the number of distinct test cases covering the statement and Exec equals the number of times a test suite executes a statement. We analyzed 459166 software faults from {12} Java programs. Bayesian statistics along with the back-door criterion was exploited for the purpose of causal inference. Furthermore, we examined the common pitfall measuring association, the mixture of causal and noncausal relationships, instead of causal association. The results show that Cover is of more causal association as against \textit{Exec}, and the causal association and noncausal one for those variables are statistically different. Software developers could exploit the results to design and write more effective test cases, which lead to discovering more bugs hidden in software.

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

↑