paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Establishing multilevel test-to-code traceability links

建立多层级测试到代码的可追溯性链接
ICSE Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering2020匹配度 1/10 · 论文研究测试到代码的可追溯链接自动建立,属于软件测试与维护方向,未涉及 LLM/Agent、静态分析在 ML/Agentic 程序中的应用、浮点程序分析或贝叶斯程序分析,与用户研究画像核心问题基本无关。引用 38 inbox
Robert White, Jens Krinke, Raymond Tan
crossref: 2026-09-12

AI 速览

一句话:提出 TCtracer,自动建立方法级与类级的测试到代码可追溯链接,并在四个开源系统上取得高精度。

测试到代码的可追溯性链接刻画测试制品与代码制品之间的关系,有助于同步测试与被测代码、减少测试失败和漏检,并帮助开发者维持系统心智模型、降低架构退化风险。但人工建立和维护这些链接负担重且易出错。本文提出 TCtracer,一种自动建立测试到代码链接的方法与实现。与已有工作不同,TCtracer 同时在方法级和类级操作,既能连接测试与函数,也能连接测试类与被测类;它组合多种新老技术,并利用方法级与类级之间的信息协同流动来提升效果。作者在四个大型、被广泛研究的开源系统上评估 TCtracer,平均而言,测试到函数链接的平均精度均值(MAP)达到 78%,测试类到类链接的 MAP 达到 93%。

问题
人工建立和维护测试到代码的可追溯性链接给开发者带来额外负担且容易出错,因此需要自动化的链接恢复方法。
方法
提出 TCtracer,在方法级和类级同时建立链接,结合多种新老技术并利用两级之间的信息协同流动。
评估
在四个大型且被广泛研究的开源系统上评估,测试到函数链接 MAP 平均为 78%,测试类到类链接 MAP 为 93%。
原文摘要(Abstract)

Test-to-code traceability links model the relationships between test artefacts and code artefacts. When utilised during the development process, these links help developers to keep test code in sync with tested code, reducing the rate of test failures and missed faults. Test-to-code traceability links can also help developers to maintain an accurate mental model of the system, reducing the risk of architectural degradation when making changes. However, establishing and maintaining these links manually places an extra burden on developers and is error-prone. This paper presents TCtracer, an approach and implementation for the automatic establishment of test-to-code traceability links. Unlike existing work, TCtracer operates at both the method level and the class level, allowing us to establish links between tests and functions, as well as between test classes and tested classes. We improve over existing techniques by combining an ensemble of new and existing techniques and exploiting a synergistic flow of information between the method and class levels. An evaluation of TCtracer using four large, well-studied open source systems demonstrates that, on average, we can establish test-to-function links with a mean average precision (MAP) of 78% and test-class-to-class links with an MAP of 93%.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot5604,
  title = {Establishing multilevel test-to-code traceability links},
  author = {Robert White and Jens Krinke and Raymond Tan},
  booktitle = {ICSE},
  year = {2020},
  doi = {10.1145/3377811.3380921}
}