arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.11767cs.SE
收藏

在工业环境中比较突变覆盖与分支覆盖

Comparing Mutation Coverage Against Branch Coverage in an Industrial Setting

Ali Parsai, Serge Demeyer

摘要:

软件开发的实践状态是由持续集成服务器推动的不断变化所驱动的。这种不断的变化需要频繁的、完全自动化的测试,这些测试能够在项目构建时立即检测到错误。由于测试套件的故障检测能力变得如此重要,现代软件开发团队也不断地监控测试套件的质量。然而,似乎国家的实践是不愿意采用强覆盖度量(即突变覆盖),而是依赖于较弱的覆盖(即分支覆盖)。在本文中,我们调查了三个原因,禁止采用突变覆盖在持续集成设置:(1)它的集成到构建系统的难度,(2)的看法,分支覆盖是“足够好”,(3)在构建过程中的性能开销。我们的调查是基于一个案例研究,涉及四个开源系统和一个工业系统。我们证明了突变覆盖率揭示了测试套件中的其他弱点相比,分支覆盖率,它是能够做到这一点,在项目建设过程中的一个可接受的性能开销。

英文摘要:

The state-of-the-practice in software development is driven by constant change fueled by continuous integration servers. Such constant change demands for frequent and fully automated tests capable to detect faults immediately upon project build. As the fault detection capability of the test suite becomes so important, modern software development teams continuously monitor the quality of the test suite as well. However, it appears that the state-of-the-practice is reluctant to adopt strong coverage metrics (namely mutation coverage), instead relying on weaker kinds of coverage (namely branch coverage). In this paper, we investigate three reasons that prohibit the adoption of mutation coverage in a continuous integration setting: (1) the difficulty of its integration into the build system, (2) the perception that branch coverage is "good enough", and (3) the performance overhead during the build. Our investigation is based on a case study involving four open source systems and one industrial system. We demonstrate that mutation coverage reveals additional weaknesses in the test suite compared to branch coverage and that it is able to do so with an acceptable performance overhead during project build.

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

↑