Evolution-aware detection of order-dependent flaky tests
Evolution-aware detection of order-dependent flaky tests
复制标题
顺序相关片状测试的进化感知检测
DOI:
10.1145/3533767.3534404
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Shi, August
中科院分区:
文献类型:
--
作者:
Li, Chengpeng;Shi, August
Regression testing is an important part of the software development process but suffers from the presence of flaky tests. Flaky tests are tests that can nondeterministically pass or fail regardless of code changes. Order-dependent flaky tests are a prominent kind of flaky tests whose outcome depends on the test order in which they are run. Prior work has focused on detecting order-dependent flaky tests through rerunning all tests in different test orders on a single version of code. As code is constantly changing, rerunning all tests in different test orders after every change is costly. In this work, we propose IncIDFlakies, a technique to detect order-dependent flaky tests by analyzing code changes to detect newly-introduced order-dependent flaky tests due to those changes. Building upon existing work in iDFlakies that reruns tests in dif- ferent test orders, IncIDFlakies analyzes and selects to run only the tests that (1) are affected by the change, and (2) can potentially result in a test-order dependency among each other due to potential shared state. Running IncIDFlakies on 67 order-dependent flaky tests across changes in code in their respective projects, including the changes where they became flaky, we find that IncIDFlakies can select to run on average 65.4% of all the tests, resulting in running 68.4% of the time that baseline iDFlakies would use when running the same number of test orders with the full test suite. Furthermore, we find that IncIDFlakies can still ensure that the test orders it runs can potentially detect the order-dependent flaky tests.
登录
查看更多内容
影响因子:
--
作者:
Wing Lam;Stefan Winter;Anjiang Wei;Tao Xie;D. Marinov;Jonathan Bell
通讯作者:
Wing Lam;Stefan Winter;Anjiang Wei;Tao Xie;D. Marinov;Jonathan Bell
DOI:
10.1109/icse.2019.00056
发表时间:
2019-05
期刊:
2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE)
影响因子:
--
作者:
Chenguang Zhu;Owolabi Legunsen;A. Shi;Miloš Gligorić
通讯作者:
Chenguang Zhu;Owolabi Legunsen;A. Shi;Miloš Gligorić
DOI:
10.1109/icst.2019.00037
发表时间:
2019-04
期刊:
2019 12th IEEE Conference on Software Testing, Validation and Verification (ICST)
影响因子:
--
作者:
Owolabi Legunsen;Yi Zhang;Milica Hadzi-Tanovic;Grigore Roşu;D. Marinov
通讯作者:
Owolabi Legunsen;Yi Zhang;Milica Hadzi-Tanovic;Grigore Roşu;D. Marinov
DOI:
10.1145/3338906.3338925
发表时间:
2019-08
期刊:
Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering
影响因子:
--
作者:
A. Shi;Wing Lam;Reed Oei;Tao Xie;D. Marinov
通讯作者:
A. Shi;Wing Lam;Reed Oei;Tao Xie;D. Marinov
DOI:
--
发表时间:
2020
期刊:
IEEE International Conference on Software Maintenance and Evolution
影响因子:
--
作者:
Denini Silva;Leopoldo Teixeira;Marcelo d’Amorim
通讯作者:
Marcelo d’Amorim