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

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

计算机科学 > 软件工程

arXiv:2208.01106 (cs)
[提交于 2022年8月3日]

标题:Flaky Test Sanitisation via On-the-Fly Assumption Inference for Tests with Network Dependencies

作者:Jens Dietrich, Shawn Rasheed, Amjed Tahir
查看论文《Flaky Test Sanitisation via On-the-Fly Assumption Inference for Tests with Network Dependencies》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Flaky tests cause significant problems as they can interrupt automated build processes that rely on all tests succeeding and undermine the trustworthiness of tests. Numerous causes of test flakiness have been identified, and program analyses exist to detect such tests. Typically, these methods produce advice to developers on how to refactor tests in order to make test outcomes deterministic. We argue that one source of flakiness is the lack of assumptions that precisely describe under which circumstances a test is meaningful. We devise a sanitisation technique that can isolate f laky tests quickly by inferring such assumptions on-the-fly, allowing automated builds to proceed as flaky tests are ignored. We demonstrate this approach for Java and Groovy programs by implementing it as extensions for three popular testing frameworks (JUnit4, JUnit5 and Spock) that can transparently inject the inferred assumptions. If JUnit5 is used, those extensions can be deployed without refactoring project source code. We demonstrate and evaluate the utility of our approach using a set of six popular real-world programs, addressing known test flakiness issues in these programs caused by dependencies of tests on network availability. We find that our method effectively sanitises failures induced by network connectivity problems with high precision and recall.
评论: to appear at IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM)
主题: 软件工程 (cs.SE)
引用方式: arXiv:2208.01106 [cs.SE]
  (或者 arXiv:2208.01106v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2208.01106

提交历史

来自:Amjed Tahir
[v1] 2022年8月3日 星期三 00:00:00 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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