Reinforcement learning for automatic test case prioritization and selection in continuous integration

计算机科学 回归检验 强化学习 考试(生物学) 选择(遗传算法) 优先次序 编码(集合论) 测试套件 可追溯性 机器学习 测试用例 人工智能 软件 回归分析 软件工程 工程类 软件开发 程序设计语言 软件建设 古生物学 集合(抽象数据类型) 管理科学 生物
作者
Helge Spieker,Arnaud Gotlieb,Dusica Marijan,Morten Mossige
标识
DOI:10.1145/3092703.3092709
摘要

Testing in Continuous Integration (CI) involves test case prioritization, selection, and execution at each cycle. Selecting the most promising test cases to detect bugs is hard if there are uncertainties on the impact of committed code changes or, if traceability links between code and tests are not available. This paper introduces Retecs, a new method for automatically learning test case selection and prioritization in CI with the goal to minimize the round-trip time between code commits and developer feedback on failed test cases. The Retecs method uses reinforcement learning to select and prioritize test cases according to their duration, previous last execution and failure history. In a constantly changing environment, where new test cases are created and obsolete test cases are deleted, the Retecs method learns to prioritize error-prone test cases higher under guidance of a reward function and by observing previous CI cycles. By applying Retecs on data extracted from three industrial case studies, we show for the first time that reinforcement learning enables fruitful automatic adaptive test case selection and prioritization in CI and regression testing.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Lozerliu完成签到,获得积分20
刚刚
fu完成签到,获得积分10
1秒前
姚yao完成签到,获得积分20
1秒前
沉默凡梦发布了新的文献求助10
1秒前
cwq应助VanishX采纳,获得10
1秒前
Cai完成签到,获得积分10
1秒前
彭于晏应助魁梧的紊采纳,获得10
2秒前
今后应助StarXG采纳,获得10
2秒前
Dai完成签到,获得积分10
3秒前
arrebol完成签到,获得积分10
3秒前
vc应助不夜侯采纳,获得10
3秒前
3秒前
cc完成签到,获得积分10
4秒前
我不到啊发布了新的文献求助10
5秒前
5秒前
小蘑菇应助LX采纳,获得10
5秒前
Zhang完成签到,获得积分10
5秒前
希望天下0贩的0应助三水采纳,获得10
6秒前
自由的如波完成签到,获得积分10
6秒前
6秒前
seven完成签到,获得积分10
7秒前
李健应助听懂的同学标个6采纳,获得10
7秒前
7秒前
8秒前
慧慧34完成签到 ,获得积分10
8秒前
infinity发布了新的文献求助10
9秒前
9秒前
山风完成签到,获得积分10
9秒前
领导范儿应助一川采纳,获得10
9秒前
bulibuli完成签到,获得积分10
9秒前
9秒前
哆啦A梦完成签到 ,获得积分10
10秒前
海洋不快乐完成签到,获得积分10
10秒前
姚yao发布了新的文献求助10
10秒前
sdwdw发布了新的文献求助10
10秒前
10秒前
笑点低人英完成签到,获得积分10
11秒前
11秒前
干净菀发布了新的文献求助10
11秒前
11秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Organometallic Chemistry of the Transition Metals 800
Chemistry and Physics of Carbon Volume 18 800
The Organometallic Chemistry of the Transition Metals 800
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
The formation of Australian attitudes towards China, 1918-1941 640
Signals, Systems, and Signal Processing 610
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6437304
求助须知:如何正确求助?哪些是违规求助? 8251713
关于积分的说明 17556241
捐赠科研通 5495580
什么是DOI,文献DOI怎么找? 2898439
邀请新用户注册赠送积分活动 1875241
关于科研通互助平台的介绍 1716270