论文标题

生产监控以改善测试套件

Production Monitoring to Improve Test Suites

论文作者

Tiwari, Deepika, Zhang, Long, Monperrus, Martin, Baudry, Benoit

论文摘要

在本文中,我们建议使用生产执行来提高开发人员感兴趣的某些感兴趣方法的测试质量。这些方法可以是现有测试套件不涵盖的方法,也可以是测试不佳的方法。我们设计了一种称为pankti的方法,该方法在生产中执行时监视应用程序,然后自动从收集的数据中生成差异单位测试以及派生的口径。 Pankti的监视和一代专注于一种单一的编程语言Java。我们在三个现实世界中的开源项目:视频会议系统,PDF操纵库和电子商务应用程序中对其进行了评估。我们表明,Pankti能够通过监视生产中的目标方法来生成差异单位测试,并且生成的测试提高了所考虑的应用程序的测试套件的质量。

In this paper, we propose to use production executions to improve the quality of testing for certain methods of interest for developers. These methods can be methods that are not covered by the existing test suite, or methods that are poorly tested. We devise an approach called PANKTI which monitors applications as they execute in production, and then automatically generates differential unit tests, as well as derived oracles, from the collected data. PANKTI's monitoring and generation focuses on one single programming language, Java. We evaluate it on three real-world, open-source projects: a videoconferencing system, a PDF manipulation library, and an e-commerce application. We show that PANKTI is able to generate differential unit tests by monitoring target methods in production, and that the generated tests improve the quality of the test suite of the application under consideration.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源