中文版 | English
题名

StubCoder : Automated Generation and Repair of Stub Code for Mock Objects

作者
通讯作者Shing-Chi,Cheung
发表日期
2023-08-21
DOI
发表期刊
ISSN
1049-331X
EISSN
1557-7392
卷号33期号:1
摘要
Mocking is an essential unit testing technique for isolating the class under test from its dependencies. Developers often leverage mocking frameworks to develop stub code that specifies the behaviors of mock objects. However, developing and maintaining stub code is labor-intensive and error-prone. In this article, we present StubCoder to automatically generate and repair stub code for regression testing. StubCoder implements a novel evolutionary algorithm that synthesizes test-passing stub code guided by the runtime behavior of test cases. We evaluated our proposed approach on 59 test cases from 13 open source projects. Our evaluation results show that StubCoder can effectively generate stub code for incomplete test cases without stub code and repair obsolete test cases with broken stub code.
关键词
相关链接[来源记录]
收录类别
语种
英语
学校署名
其他
资助项目
National Science Foundation of China[61932021] ; Hong Kong Research Grant Council/General Research Fund[16205821] ; Hong Kong Research Grant Council/Research Impact Fund[R5034-18] ; Natural Sciences and Engineering Research Council of Canada Discovery Grant["RGPIN-2022-03744","DGECR-2022-00378"]
WOS研究方向
Computer Science
WOS类目
Computer Science, Software Engineering
WOS记录号
WOS:001168576700017
出版者
EI入藏号
20240615500849
EI主题词
Genetic algorithms ; Genetic programming ; Open source software ; Open systems ; Repair
EI分类号
Computer Software, Data Handling and Applications:723 ; Computer Programming:723.1 ; Computer Applications:723.5 ; Maintenance:913.5
ESI学科分类
COMPUTER SCIENCE
来源库
人工提交
引用统计
被引频次[WOS]:5
成果类型期刊论文
条目标识符http://sustech.caswiz.com/handle/2SGJ60CL/564124
专题南方科技大学
工学院
工学院_计算机科学与工程系
作者单位
1.The Hong Kong University of Science and Technology
2.McGill University
3.University of Auckland
4.Southern University of Science and Technology
5.WeBank
推荐引用方式
GB/T 7714
Hengcheng,Zhu,Lili,Wei,Valerio,Terragni,et al. StubCoder : Automated Generation and Repair of Stub Code for Mock Objects[J]. ACM Transactions on Software Engineering and Methodology,2023,33(1).
APA
Hengcheng,Zhu.,Lili,Wei.,Valerio,Terragni.,Yepang,Liu.,Shing-Chi,Cheung.,...&Lihong,Song.(2023).StubCoder : Automated Generation and Repair of Stub Code for Mock Objects.ACM Transactions on Software Engineering and Methodology,33(1).
MLA
Hengcheng,Zhu,et al."StubCoder : Automated Generation and Repair of Stub Code for Mock Objects".ACM Transactions on Software Engineering and Methodology 33.1(2023).
条目包含的文件
条目无相关文件。
个性服务
原文链接
推荐该条目
保存到收藏夹
查看访问统计
导出为Endnote文件
导出为Excel格式
导出为Csv格式
Altmetrics Score
谷歌学术
谷歌学术中相似的文章
[Hengcheng,Zhu]的文章
[Lili,Wei]的文章
[Valerio,Terragni]的文章
百度学术
百度学术中相似的文章
[Hengcheng,Zhu]的文章
[Lili,Wei]的文章
[Valerio,Terragni]的文章
必应学术
必应学术中相似的文章
[Hengcheng,Zhu]的文章
[Lili,Wei]的文章
[Valerio,Terragni]的文章
相关权益政策
暂无数据
收藏/分享
所有评论 (0)
[发表评论/异议/意见]
暂无评论

除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。