paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A First Look at the Inheritance-Induced Redundant Test Execution

初探继承导致的冗余测试执行
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 3/10 · 该论文属于软件测试领域的实证研究,核心是测试代码中的继承导致冗余测试执行,并采用静态与动态分析结合的定位方法,与用户关注的静态分析×LLM/Agent、浮点程序分析、贝叶斯程序分析等方向均无直接交集。仅在'采用静态分析技术'和'问题驱动、指出现有实践缺陷'这两点方法气质上略有共鸣,但研究目标与应用场景偏离较远。引用 3 inbox
Dong Jae Kim, Jinqiu Yang, Tse-Hsun Chen
crossref: 2026-09-12

AI 速览

一句话:首次实证研究测试代码中的继承及其导致的冗余测试执行,并提出静态与动态分析结合的识别定位方法。

该论文关注面向对象测试代码中的继承问题:继承虽促进复用,却可能使子类继承的测试用例被重复执行,造成冗余并降低测试效率。作者首次对测试继承的普遍性与特征进行实证研究,并提出一种结合静态分析与动态分析的混合方法,用于识别和定位由继承引起的冗余测试用例。对实际项目的评估发现:继承在测试代码中被广泛使用;继承导致的冗余测试执行占全部执行测试用例的13%;绕过这些冗余可减少约14%的测试执行时间。研究还指出需要谨慎重构以减少冗余测试,并呼吁进一步关注测试代码质量。

问题
测试代码中广泛使用的继承是否会导致冗余测试执行,其普遍性、特征与影响如何,尚缺乏系统研究。
方法
通过实证研究分析测试继承的普遍性与特征,并提出结合静态和动态分析的方法识别并定位继承引发的冗余测试用例。
评估
在真实项目上评估方法,发现冗余执行占13%,绕过冗余可减少14%的测试执行时间。
原文摘要(Abstract)

Inheritance, a fundamental aspect of object-oriented design, has been leveraged to enhance code reuse and facilitate efficient software development. However, alongside its benefits, inheritance can introduce tight coupling and complex relationships between classes, posing challenges for software maintenance. Although there are many studies on inheritance in source code, there is limited study on using inheritance in test code. In this paper, we take the first step by studying inheritance in test code, with a focus on redundant test executions caused by inherited test cases. We empirically study the prevalence of test inheritance and its characteristics. We also propose a hybrid approach that combines static and dynamic analysis to identify and locate inheritance-induced redundant test cases. Our findings reveal that (1) inheritance is widely utilized in the test code, (2) inheritance-induced redundant test executions are prevalent, accounting for 13% of all execution test cases, (3) bypassing these redundancies can help reduce 14% of the test execution time, and finally, (4) our study highlights the need for careful refactoring decisions to minimize redundant test cases and identifies the need for further research on test code quality.

链接与引用

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

BibTeX
@inproceedings{paperbot11267,
  title = {A First Look at the Inheritance-Induced Redundant Test Execution},
  author = {Dong Jae Kim and Jinqiu Yang and Tse-Hsun Chen},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639166}
}