Bitte benutzen Sie diese Kennung, um auf die Ressource zu verweisen: https://doi.org/10.21256/zhaw-3221
Publikationstyp: Beitrag in wissenschaftlicher Zeitschrift
Art der Begutachtung: Peer review (Publikation)
Titel: Branch coverage prediction in automated testing
Autor/-in: Grano, Giovanni
Titov, Timofey V.
Panichella, Sebastiano
Gall, Harald C.
DOI: 10.21256/zhaw-3221
10.1002/smr.2158
Erschienen in: Journal of Software: Evolution and Process
Band(Heft): 31
Heft: 9
Seite(n): e2158
Erscheinungsdatum: 2019
Verlag / Hrsg. Institution: Wiley
ISSN: 2047-7473
Sprache: Englisch
Fachgebiet (DDC): 005: Computerprogrammierung, Programme und Daten
Zusammenfassung: Software testing is crucial in continuous integration (CI). Ideally, at every commit, all the test cases should be executed, and moreover, new test cases should be generated for the new source code. This is especially true in a Continuous Test Generation (CTG) environment, where the automatic generation of test cases is integrated into the continuous integration pipeline. In this context, developers want to achieve a certain minimum level of coverage for every software build. However, executing all the test cases and, moreover, generating new ones for all the classes at every commit is not feasible. As a consequence, developers have to select which subset of classes has to be tested and/or targeted by test‐case generation. We argue that knowing a priori the branch coverage that can be achieved with test‐data generation tools can help developers into taking informed decision about those issues. In this paper, we investigate the possibility to use source‐code metrics to predict the coverage achieved by test‐data generation tools. We use four different categories of source‐code features and assess the prediction on a large data set involving more than 3'000 Java classes. We compare different machine learning algorithms and conduct a fine‐grained feature analysis aimed at investigating the factors that most impact the prediction accuracy. Moreover, we extend our investigation to four different search budgets. Our evaluation shows that the best model achieves an average 0.15 and 0.21 MAE on nested cross‐validation over the different budgets, respectively, on EVOSUITE and RANDOOP. Finally, the discussion of the results demonstrate the relevance of coupling‐related features for the prediction accuracy.
Weitere Angaben: This is the peer reviewed version which has been published in final form at [DOI]. This article may be used for non-commercial purposes in accordance with Wiley Terms and Conditions for Use of Self-Archived Versions.
URI: https://digitalcollection.zhaw.ch/handle/11475/17315
Volltext Version: Akzeptierte Version
Lizenz (gemäss Verlagsvertrag): Lizenz gemäss Verlagsvertrag
Gesperrt bis: 2020-04-01
Departement: School of Engineering
Organisationseinheit: Institut für Informatik (InIT)
Enthalten in den Sammlungen:Publikationen School of Engineering

Dateien zu dieser Ressource:
Datei Beschreibung GrößeFormat 
jsep.pdfAccepted Version690.67 kBAdobe PDFMiniaturbild
Öffnen/Anzeigen
Zur Langanzeige
Grano, G., Titov, T. V., Panichella, S., & Gall, H. C. (2019). Branch coverage prediction in automated testing. Journal of Software: Evolution and Process, 31(9), e2158. https://doi.org/10.21256/zhaw-3221
Grano, G. et al. (2019) ‘Branch coverage prediction in automated testing’, Journal of Software: Evolution and Process, 31(9), p. e2158. Available at: https://doi.org/10.21256/zhaw-3221.
G. Grano, T. V. Titov, S. Panichella, and H. C. Gall, “Branch coverage prediction in automated testing,” Journal of Software: Evolution and Process, vol. 31, no. 9, p. e2158, 2019, doi: 10.21256/zhaw-3221.
GRANO, Giovanni, Timofey V. TITOV, Sebastiano PANICHELLA und Harald C. GALL, 2019. Branch coverage prediction in automated testing. Journal of Software: Evolution and Process. 2019. Bd. 31, Nr. 9, S. e2158. DOI 10.21256/zhaw-3221
Grano, Giovanni, Timofey V. Titov, Sebastiano Panichella, and Harald C. Gall. 2019. “Branch Coverage Prediction in Automated Testing.” Journal of Software: Evolution and Process 31 (9): e2158. https://doi.org/10.21256/zhaw-3221.
Grano, Giovanni, et al. “Branch Coverage Prediction in Automated Testing.” Journal of Software: Evolution and Process, vol. 31, no. 9, 2019, p. e2158, https://doi.org/10.21256/zhaw-3221.


Alle Ressourcen in diesem Repository sind urheberrechtlich geschützt, soweit nicht anderweitig angezeigt.