paperbot · PL 论文追踪

全部论文 待读 收藏

P2 HomoTR

HomoTR:同源测试推荐系统
ASE Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering2020匹配度 2/10 · 论文研究的是基于方法同源性的单元测试用例在线推荐,属于软件测试与测试推荐方向,与用户关注的静态分析、LLM/Agent 程序分析、浮点程序分析、贝叶斯程序分析等核心方向没有直接交集。其工具落地和自动化测试有一定工程价值,但研究问题和方法均不在用户画像的核心范围内。引用 3 inbox
Chenqian Zhu, Weisong Sun, Qin Liu, Yangyang Yuan, Chunrong Fang, Yong Huang
crossref: 2026-09-12

AI 速览

一句话:提出 HomoTR,通过度量方法同源性,为待测方法在线推荐已有测试用例。

单元测试中自动测试生成效果常不理想,测试推荐成为提升效率的可行途径。本文提出 HomoTR,通过度量待测方法与已有测试方法之间的同源性,若二者同源,则将其已有测试用例在线推荐给新方法。初步实验表明,HomoTR 能快速、有效地推荐测试用例,帮助开发者提高测试效率。系统已集成到 MoocTest 平台,可自动执行推荐用例,并可视化分支覆盖率等测试结果,便于开发者理解测试过程。

问题
自动测试生成在实践中表现不理想,如何高效支持单元测试是问题;测试推荐是可行方向。
方法
HomoTR 通过度量待测方法与已有测试方法之间的同源性,若同源则将已有测试用例推荐给新方法。
评估
初步实验显示 HomoTR 能快速有效地推荐测试用例;系统已集成到 MoocTest 平台,可自动执行推荐用例并可视化分支覆盖率等结果。
原文摘要(Abstract)

A growing number of new technologies are used in test development. Among them, automatic test generation, a promising technology to improve the efficiency of unit testing, currently performs not satisfactory in practice. Test recommendation, like code recommendation, is another feasible technology for supporting efficient unit testing and gets increasing attention. In this paper, we develop a novel system, namely HomoTR, which implements online test recommendations by measuring the homology of two methods. If the new method under test shares homology with an existing method that has test cases, HomoTR will recommend the test cases to the new method. The preliminary experiments show that HomoTR can quickly and effectively recommend test cases to help the developers improve the testing efficiency. Besides, HomoTR has been integrated into the MoocTest platform successfully, so it can also execute the recommended test cases automatically and visualize the testing results (e.g., Branch Coverage) friendly to help developers understand the process of testing. The demo video of HomoTR can be found at https://youtu.be/_227EfcUbus.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5884,
  title = {HomoTR},
  author = {Chenqian Zhu and Weisong Sun and Qin Liu and Yangyang Yuan and Chunrong Fang and Yong Huang},
  booktitle = {ASE},
  year = {2020},
  doi = {10.1145/3324884.3415296}
}