Test prioritization in continuous integration environments
Haghighatkhah, Alireza; Mäntylä, Mika; Oivo, Markku; Kuvaja, Pasi (2018-08-31)
Alireza Haghighatkhah, Mika Mäntylä, Markku Oivo, Pasi Kuvaja, Test prioritization in continuous integration environments, Journal of Systems and Software, Volume 146, 2018, Pages 80-98, ISSN 0164-1212, https://doi.org/10.1016/j.jss.2018.08.061
© 2018. This manuscript version is made available under the CC-BY-NC-ND 4.0 license http://creativecommons.org/licenses/by-nc-nd/4.0/.
https://creativecommons.org/licenses/by-nc-nd/4.0/
https://urn.fi/URN:NBN:fi-fe201902134783
Tiivistelmä
Abstract
Two heuristics namely diversity-based (DBTP) and history-based test prioritization (HBTP) have been separately proposed in the literature. Yet, their combination has not been widely studied in continuous integration (CI) environments. The objective of this study is to catch regression faults earlier, allowing developers to integrate and verify their changes more frequently and continuously. To achieve this, we investigated six open-source projects, each of which included several builds over a large time period. Findings indicate that previous failure knowledge seems to have strong predictive power in CI environments and can be used to effectively prioritize tests. HBTP does not necessarily need to have large data, and its effectiveness improves to a certain degree with larger history interval. DBTP can be used effectively during the early stages, when no historical data is available, and also combined with HBTP to improve its effectiveness. Among the investigated techniques, we found that history-based diversity using NCD Multiset is superior in terms of effectiveness but comes with relatively higher overhead in terms of method execution time. Test prioritization in CI environments can be effectively performed with negligible investment using previous failure knowledge, and its effectiveness can be further improved by considering dissimilarities among the tests.
Kokoelmat
- Avoin saatavuus [34624]