题名 |
|
作者 | |
通讯作者 | 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. |
APA |
Hengcheng,Zhu.,Lili,Wei.,Valerio,Terragni.,Yepang,Liu.,Shing-Chi,Cheung.,...&Lihong,Song.(2023). |
MLA |
Hengcheng,Zhu,et al." |
条目包含的文件 | 条目无相关文件。 |
|
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。
修改评论