跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:1903.05432 (cs)
[提交于 2019年3月13日]

标题:Is the Stack Distance Between Test Case and Method Correlated With Test Effectiveness?

作者:Rainer Niedermayr, Stefan Wagner
查看论文《Is the Stack Distance Between Test Case and Method Correlated With Test Effectiveness?》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Mutation testing is a means to assess the effectiveness of a test suite and its outcome is considered more meaningful than code coverage metrics. However, despite several optimizations, mutation testing requires a significant computational effort and has not been widely adopted in industry. Therefore, we study in this paper whether test effectiveness can be approximated using a more light-weight approach. We hypothesize that a test case is more likely to detect faults in methods that are close to the test case on the call stack than in methods that the test case accesses indirectly through many other methods. Based on this hypothesis, we propose the minimal stack distance between test case and method as a new test measure, which expresses how close any test case comes to a given method, and study its correlation with test effectiveness. We conducted an empirical study with 21 open-source projects, which comprise in total 1.8 million LOC, and show that a correlation exists between stack distance and test effectiveness. The correlation reaches a strength up to 0.58. We further show that a classifier using the minimal stack distance along with additional easily computable measures can predict the mutation testing result of a method with 92.9% precision and 93.4% recall. Hence, such a classifier can be taken into consideration as a light-weight alternative to mutation testing or as a preceding, less costly step to that.
评论: EASE 2019
主题: 软件工程 (cs.SE)
引用方式: arXiv:1903.05432 [cs.SE]
  (或者 arXiv:1903.05432v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.1903.05432
期刊参考: 2019 ACM 23rd International Conference on Evaluation and Assessment in Software Engineering (EASE)
相关 DOI: https://doi.org/10.1145/3319008.3319021

提交历史

来自:Rainer Niedermayr
[v1] 2019年3月13日 星期三 11:54:14 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2019-03
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站