Résumé
Various search-based test generation techniques have been proposed to automate the generation of unit tests fulfilling different criteria (e.g., line coverage, branch coverage, mutation score, etc.). Despite several advances made over the years, search-based unit test generation still suffers from a lack of guidance due to the limited amount of information available in the source code that, for instance, hampers the generation of complex objects. Previous studies introduced many strategies to address this issue, e.g., dynamic symbolic execution or seeding, but do not take the internal execution of the methods into account. In this paper, we introduce a novel secondary objective called commonality score, measuring how close the execution path of a test case is from reproducing a common or uncommon execution pattern observed during the operation of the software. To assess the commonality score, we implemented it in EvoSuite and evaluated its application on 150 classes from JabRef, an open-source software for managing bibliography references. Our results are mixed. Our approach leads to test cases that indeed follow common or uncommon execution patterns. However, if the commonality score can have a positive impact on the structural coverage and mutation score of the generated test suites, it can also be detrimental in some cases.
langue originale | Anglais |
---|---|
titre | Search-Based Software Engineering - 12th International Symposium, SSBSE 2020, Proceedings |
rédacteurs en chef | Aldeida Aleti, Annibale Panichella |
Editeur | Springer Science and Business Media Deutschland GmbH |
Pages | 121-136 |
Nombre de pages | 16 |
ISBN (imprimé) | 9783030597610 |
Les DOIs | |
Etat de la publication | Publié - 2020 |
Modification externe | Oui |
Evénement | 12th International Symposium on Search-Based Software Engineering, SSBSE 2020 - Bari, Italie Durée: 7 oct. 2020 → 8 oct. 2020 |
Série de publications
Nom | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|
Volume | 12420 LNCS |
ISSN (imprimé) | 0302-9743 |
ISSN (Electronique) | 1611-3349 |
Une conférence
Une conférence | 12th International Symposium on Search-Based Software Engineering, SSBSE 2020 |
---|---|
Pays/Territoire | Italie |
La ville | Bari |
période | 7/10/20 → 8/10/20 |
Empreinte digitale
Examiner les sujets de recherche de « Commonality-Driven Unit Test Generation ». Ensemble, ils forment une empreinte digitale unique.Ensembles de données
-
Unit test generation for common and uncommon behaviors: dataset
Evers, B. (Créateur), Derakhshanfar, P. (Créateur), Devroey, X. (Créateur) & Zaidman, A. (Créateur), Zenodo, 17 juin 2020
Ensemble de données
-
Unit test generation for common and uncommon behaviors: replication package
Evers, B. (Créateur), Derakhshanfar, P. (Créateur) & Devroey, X. (Créateur), Zenodo, 16 juin 2020
Ensemble de données