清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

Regression test prioritization leveraging source code similarity with tree kernels

代码库 计算机科学 源代码 回归检验 测试套件 Java 杠杆(统计) 测试用例 抽象语法树 控制流程 数据挖掘 软件进化 程序设计语言 回归分析 软件 语法 机器学习 人工智能 软件开发 软件建设
作者
Francesco Altiero,Anna Corazza,Sergio Di Martino,Adriano Peron,Luigi Libero Lucio Starace
出处
期刊:Journal of software [Wiley]
卷期号:36 (8)
标识
DOI:10.1002/smr.2653
摘要

Abstract Regression test prioritization (RTP) is an active research field, aiming at re‐ordering the tests in a test suite to maximize the rate at which faults are detected. A number of RTP strategies have been proposed, leveraging different factors to reorder tests. Some techniques include an analysis of changed source code, to assign higher priority to tests stressing modified parts of the codebase. Still, most of these change‐based solutions focus on simple text‐level comparisons among versions. We believe that measuring source code changes in a more refined way, capable of discriminating between mere textual changes (e.g., renaming of a local variable) and more structural changes (e.g., changes in the control flow), could lead to significant benefits in RTP, under the assumption that major structural changes are also more likely to introduce faults. To this end, we propose two novel RTP techniques that leverage tree kernels (TK), a class of similarity functions largely used in Natural Language Processing on tree‐structured data. In particular, we apply TKs to abstract syntax trees of source code, to more precisely quantify the extent of structural changes in the source code, and prioritize tests accordingly. We assessed the effectiveness of the proposals by conducting an empirical study on five real‐world Java projects, also used in a number of RTP‐related papers. We automatically generated, for each considered pair of software versions (i.e., old version, new version) in the evolution of the involved projects, 100 variations with artificially injected faults, leading to over 5k different software evolution scenarios overall. We compared the proposed prioritization approaches against well‐known prioritization techniques, evaluating both their effectiveness and their execution times. Our findings show that leveraging more refined code change analysis techniques to quantify the extent of changes in source code can lead to relevant improvements in prioritization effectiveness, while typically introducing negligible overheads due to their execution.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
xhx完成签到,获得积分20
13秒前
Eric800824完成签到 ,获得积分10
13秒前
芒果布丁完成签到 ,获得积分10
14秒前
醉熏的千柳完成签到 ,获得积分10
20秒前
浪麻麻完成签到 ,获得积分10
22秒前
浪麻麻完成签到 ,获得积分10
22秒前
奥利奥利奥完成签到 ,获得积分10
28秒前
追梦完成签到,获得积分10
31秒前
潇洒的语蝶完成签到 ,获得积分10
34秒前
Accept完成签到 ,获得积分10
50秒前
深情安青应助唠叨的若男采纳,获得10
50秒前
59秒前
1分钟前
秋迎夏完成签到,获得积分10
1分钟前
不知道完成签到,获得积分10
1分钟前
蔡勇强完成签到 ,获得积分10
1分钟前
ceeray23应助科研通管家采纳,获得10
1分钟前
ceeray23应助科研通管家采纳,获得10
1分钟前
迈克老狼完成签到 ,获得积分10
1分钟前
高贵的晓筠完成签到 ,获得积分10
1分钟前
1分钟前
jibenkun完成签到,获得积分10
1分钟前
tangchao完成签到,获得积分10
1分钟前
研友_57A445完成签到 ,获得积分0
1分钟前
优秀的尔风完成签到,获得积分10
1分钟前
刻苦的新烟完成签到 ,获得积分10
1分钟前
小嚣张完成签到,获得积分10
1分钟前
hi完成签到 ,获得积分10
1分钟前
changfox完成签到,获得积分10
1分钟前
不再挨训完成签到 ,获得积分10
2分钟前
serenity711完成签到 ,获得积分10
2分钟前
平凡世界完成签到 ,获得积分10
2分钟前
airtermis完成签到 ,获得积分10
2分钟前
2分钟前
肖果完成签到 ,获得积分10
2分钟前
小小完成签到 ,获得积分10
2分钟前
淡然一德完成签到,获得积分10
2分钟前
keyan完成签到 ,获得积分10
2分钟前
嗯嗯嗯哦哦哦完成签到 ,获得积分10
2分钟前
高分求助中
The Mother of All Tableaux Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 2400
Ophthalmic Equipment Market by Devices(surgical: vitreorentinal,IOLs,OVDs,contact lens,RGP lens,backflush,diagnostic&monitoring:OCT,actorefractor,keratometer,tonometer,ophthalmoscpe,OVD), End User,Buying Criteria-Global Forecast to2029 2000
Optimal Transport: A Comprehensive Introduction to Modeling, Analysis, Simulation, Applications 800
Official Methods of Analysis of AOAC INTERNATIONAL 600
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 588
Residual Stress Measurement by X-Ray Diffraction, 2003 Edition HS-784/2003 588
T/CIET 1202-2025 可吸收再生氧化纤维素止血材料 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3949990
求助须知:如何正确求助?哪些是违规求助? 3495278
关于积分的说明 11076054
捐赠科研通 3225837
什么是DOI,文献DOI怎么找? 1783291
邀请新用户注册赠送积分活动 867584
科研通“疑难数据库(出版商)”最低求助积分说明 800839