Practical Test Dependency Detection
Alessio Gambi, Jonathan Bell, Andreas Zeller · IEEE International Conference on Software Testing, Verification and Validation (ICST) · 2018
Regression tests should consistently produce the same outcome when executed against the same version of the system under test. Recent studies, however, show a different picture: in many cases simply changing the order in which tests execute is enough to produce different test outcomes. These studies also identify the presence of dependencies between tests as one likely cause of this behavior. Test dependencies affect the quality of tests and of the correlated development activities, like regression test selection, prioritization, and parallelization, which assume that tests are independent. Therefore, developers must promptly identify and resolve problematic test dependencies. This paper presents PRADET, a novel approach for detecting problematic dependencies that is both effective and efficient. PRADET uses a systematic, data-driven process to detect problematic test dependencies significantly faster and more precisely than prior work. PRADET scales to analyze large projects with thousands of tests that existing tools cannot analyze in reasonable amount of time, and found 27 previously unknown dependencies.
Cited by 82 works. doi:10.1109/icst.2018.00011
Authors
References
- Prioritizing test cases for regression testing
- Analyzing regression test selection techniques
- Regression testing minimization, selection and prioritization: a survey
- Yesterday, my program worked. Today, it does not. Why?
- An empirical analysis of flaky tests
- Refactoring test code
- Yesterday, my Program Worked. Today, it Does Not. Why?
- Empirically revisiting the test independence assumption
- Taming Google-scale continuous testing
- Practical regression test selection with dynamic file dependencies