Bing Zhang
Research Subjects
Bing Zhang has a total of 8 co-authors. Here are the top co-authors by number of shared publications:
- Hengcheng Zhu
The Hong Kong University of Science and Technology, Clear Water Bay, Hong Kong SAR
1 shared publication - Jiarong Wu
The Hong Kong University of Science and Technology, Hong Kong, China
1 shared publication - Lihong Song
WeBank Co. Ltd., China
1 shared publication - Lili Wei
McGill University, Montreal, Canada
1 shared publication - Qin Sheng
WeBank Co. Ltd., China
1 shared publication - Shing-Chi Cheung
Hong Kong University of Science and Technology, Hong Kong, Hong Kong
1 shared publication
Latest Publications
- Open Access
- 24 November 2023
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 33 (1) , 1-31
StubCoder : Automated Generation and Repair of Stub Code for Mock Objects
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.
- 24 November 2023
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 33 (1) , 1-31
Open AccessStubCoder : Automated Generation and Repair of Stub Code for Mock Objects
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.