###
计算机系统应用英文版:2020,29(9):40-46
本文二维码信息
码上扫一扫!
Evosuite和Randoop单元测试用例生成工具覆盖率对比分析
(四川大学 计算机学院(软件学院), 成都 610065)
Coverage Comparison Analysis of Unit Test Case Generation Tools: Evosuite and Randoop
(College of Computer Science (College of Software Engineering), Sichuan University, Chengdu 610065, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1878次   下载 2303
Received:December 11, 2019    Revised:January 03, 2020
中文摘要: 在软件测试中,测试用例对被测软件的覆盖率,是发现软件缺陷的重要前提之一.本文采用软件工程实验方法,基于Defects4J数据集,对Evosuite和Randoop工具在不同的生成时间限制下,生成的测试用例对程序模块的覆盖率,程序分支的覆盖率等进行实验分析,发现当生成时间超过20 s时,虽然Randoop生成的测试用例多于Evosuite,但Evosuite测试用例的覆盖率明显优于Randoop.本文同时对影响覆盖率的因素进行了分析.该研究对于如何使用这两种工具生成高覆盖率的测试用例,以及对工具的改进具有参考价值.
Abstract:In the software testing, coverage of test cases is one of the important prerequisites to find software defects. In this study, the experiment method in software engineering was used to analyze the coverage of program modules and program branches. Based on the Defects4J dataset, Evosuite and Randoop tools were used to generate test cases under different generating time limits. When the generation time exceeded 20 s, the numbers of test cases produced by Randoop was more than that produced by Evosuite, but the coverage of Evosuite test cases was significantly higher than the coverage of Randoop. At the same time, this study also analyzed the factors affecting the coverage. It is a good reference for how to use these tools to generate high coverage test case and for the improvement of tools.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
杨正卉,洪玫,郭丹,王潇,刘芳,黄小丹.Evosuite和Randoop单元测试用例生成工具覆盖率对比分析.计算机系统应用,2020,29(9):40-46
YANG Zheng-Hui,HONG Mei,GUO Dan,WANG Xiao,LIU Fang,HUANG Xiao-Dan.Coverage Comparison Analysis of Unit Test Case Generation Tools: Evosuite and Randoop.COMPUTER SYSTEMS APPLICATIONS,2020,29(9):40-46