【24h】

Comparison of Unit-Level Automated Test Generation Tools

机译:单位级别自动测试生成工具的比较

获取原文

摘要

Data from projects worldwide show that many software projects fail and most are completed late or over budget. Unit testing is a simple but effective technique to improve software in terms of quality, flexibility, and time-to-market. A key idea of unit testing is that each piece of code needs its own tests and the best person to design those tests is the developer who wrote the software. However, generating tests for each unit by hand is very expensive, possibly prohibitively so. Automatic test data generation is essential to support unit testing and as unit testing is achieving more attention, developers are using automated unit test data generation tools more often. However, developers have very little information about which tools are effective. This experiment compared three well-known public-accessible unit test data generation tools, JCrasher, TestGen4j, and JUB. We applied them to Java classes and evaluated them based on their mutation scores. As a comparison, we created two additional sets of tests for each class. One test set contained random values and the other contained values to satisfy edge coverage. Results showed that the automatic test data generation tools generated tests with almost the same mutation scores as the random tests.
机译:来自全球项目的数据显示,许多软件项目失败,大多数都已延迟或超过预算。单元测试是一种简单但有效的技术,可以在质量,灵活性和上市时间方面改进软件。单元测试的一个关键概念是,每条代码都需要自己的测试和设计这些测试的最佳人员是编写软件的开发人员。然而,手工制作每个单位的测试是非常昂贵的,可能非常昂贵。自动测试数据生成对于支持单元测试至关重要,并且随着单元测试更加关注,开发人员正在使用自动单元测试数据生成工具。但是,开发人员很少有关哪种工具有效的信息。该实验比较了三个着名的公共可访问单元测试数据生成工具,Jcrasher,TestGen4j和Jub。我们将它们应用于Java类并根据其突变分数评估它们。作为比较,我们为每个类创建了两组额外的测试。一个测试集包含随机值和其他包含值以满足边缘覆盖范围。结果表明,自动测试数据生成工具产生几乎与随机测试相同的突变分数的测试。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号