首页> 外文期刊>ACM transactions on software engineering and methodology >Does Automated Unit Test Generation Really Help Software Testers? A Controlled Empirical Study
【24h】

Does Automated Unit Test Generation Really Help Software Testers? A Controlled Empirical Study

机译:自动化单元测试生成真的对软件测试人员有帮助吗?对照实证研究

获取原文
获取原文并翻译 | 示例
       

摘要

Work on automated test generation has produced several tools capable of generating test data which achieves high structural coverage over a program. In the absence of a specification, developers are expected to manually construct or verify the test oracle for each test input. Nevertheless, it is assumed that these generated tests ease the task of testing for the developer, as testing is reduced to checking the results of tests. While this assumption has persisted for decades, there has been no conclusive evidence to date confirming it. However, the limited adoption in industry indicates this assumption may not be correct, and calls into question the practical value of test generation tools. To investigate this issue, we performed two controlled experiments comparing a total of 97 subjects split between writing tests manually and writing tests with the aid of an automated unit test generation tool, EvoSutte. We found that, on one hand, tool support leads to clear improvements in commonly applied quality metrics such as code coverage (up to 300% increase). However, on the other hand, there was no measurable improvement in the number of bugs actually found by developers. Our results not only cast some doubt on how the research community evaluates test generation tools, but also point to improvements and future work necessary before automated test generation tools will be widely adopted by practitioners.
机译:关于自动测试生成的工作已经产生了几种能够生成测试数据的工具,这些数据可以在程序上实现较高的结构覆盖率。在没有规范的情况下,开发人员应为每个测试输入手动构建或验证测试oracle。但是,由于将测试简化为检查测试结果,因此可以假定这些生成的测试简化了开发人员的测试任务。尽管这一假设已经持续了数十年,但迄今为止尚无确凿的证据证实这一假设。但是,行业中采用的限制表明这种假设可能是不正确的,并质疑测试生成工具的实际价值。为了调查此问题,我们进行了两个受控实验,比较了手动编写测试和借助自动单元测试生成工具EvoSutte编写测试之间的总共97个主题。我们发现,一方面,工具支持可导致对常用的质量指标(例如代码覆盖率)进行明显的改进(最多提高300%)。但是,另一方面,开发人员实际发现的错误数量没有明显的改善。我们的结果不仅使研究界对测试生成工具的评估方式产生疑问,而且还指出了在自动测试生成工具将被实践者广泛采用之前的改进和未来的工作。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号