计算机科学
代码生成
测试管理方法
代码覆盖率
编码(集合论)
测试用例
考试(生物学)
软件质量
软件开发
冗余代码
软件
软件工程
测试线束
无法访问的代码
基线(sea)
程序设计语言
组分(热力学)
KPI驱动的代码分析
代码评审
单元测试
基于模型的测试
源代码
软件建设
软件框架
测试中的系统
软件系统
可靠性工程
数据挖掘
回归检验
静态程序分析
测试套件
试验数据
作者
Xiang Zhou,Lei Yu,JunHua Liu,CongHui Yangand,LiXun Wang
标识
DOI:10.1109/smc58881.2025.11343040
摘要
Software testing is a critical component in software development that is closely related to software quality. Traditional test generation methods face challenges such as producing test cases that are difficult to read and maintain synchronously. Meanwhile, with the advancement of large language models (LLMs) in code generation, the quality of LLM-generated code is increasingly comparable to human-written code. Therefore, this paper proposes a test code generation framework using Model-driven Multiple Results Filtering and Multi-Round Generation strategy (Model-MRFaG). To better adapt to test generation tasks for mainstream programming languages, we built an Alpaca-format Test-Code DataSet for Finetuning Baseline Models (TCDSF) containing six programming languages: Python, Java, JavaScript, C++, C#, and Go, and used this dataset to fine-tune a Baseline Model to obtain the TestCoder model. Subsequently, we developed the Model-MRFaG framework based on the TestCoder model to further improve the accuracy of test code generation. Through comparative experiments evaluating both general test sets and test code generation capabilities, TestCoder outperforms the Baseline Model in both general test sets and test code generation accuracy. Furthermore, the Model-MRFaG framework can further improve the accuracy of test code generation, providing a new solution approach for the intelligent development of software testing.
科研通智能强力驱动
Strongly Powered by AbleSci AI