Does Refactoring of Test Smells Induce Fixing Flaky Tests?
Does Refactoring of Test Smells Induce Fixing Flaky Tests?
复制标题
测试气味的重构是否会导致修复片状测试?
DOI:
--
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
A. Zaidman
中科院分区:
文献类型:
--
作者:
Fabio Palomba;A. Zaidman
Regression testing is a core activity that allows developers to ensure that source code changes do not introduce bugs. An important prerequisite then is that test cases are deterministic. However, this is not always the case as some tests suffer from socalled flakiness. Flaky tests have serious consequences, as they can hide real bugs and increase software inspection costs. Existing research has focused on understanding the root causes of test flakiness and devising techniques to automatically fix flaky tests; a key area of investigation being concurrency. In this paper, we investigate the relationship between flaky tests and three previously defined test smells, namely Resource Optimism, Indirect Testing and Test Run War.We have set up a study involving 19,532 JUnit test methods belonging to 18 software systems. A key result of our investigation is that 54% of tests that are flaky contain a test code smell that can cause the flakiness. Moreover, we found that refactoring the test smells not only removed the design flaws, but also fixed all 54% of flaky tests causally co-occurring with test smells.
DOI:
10.1145/2610384.2610419
发表时间:
2014
期刊:
--
影响因子:
--
作者:
Marinescu P
通讯作者:
Marinescu P