Abstract
Search-based test case generation approaches make use of static type information to determine which data types should be used for the creation of new test cases. Dynamically typed languages like JavaScript, however, do not have this type information. In this paper, we propose an unsupervised probabilistic type inference approach to infer data types within the test case generation process. We evaluated the proposed approach on a benchmark of 98~units under test (i.e., exported classes and functions) compared to random type sampling w.r.t. branch coverage. Our results show that our type inference approach achieves a statistically significant increase in 56% of the test files with up to 71% of branch coverage compared to the baseline.
Original language | English |
---|---|
Title of host publication | Search-Based Software Engineering - 14th International Symposium, SSBSE 2022, Proceedings |
Subtitle of host publication | 14th International Symposium, SSBSE 2022, Proceedings |
Editors | Mike Papadakis, Silvia Regina Vergilio |
Place of Publication | Cham |
Publisher | Springer |
Pages | 67–82 |
Number of pages | 16 |
Edition | 1 |
ISBN (Electronic) | 978-3-031-21251-2 |
ISBN (Print) | 978-3-031-21250-5 |
DOIs | |
Publication status | Published - 2022 |
Event | 14th Symposium on Search-based Software Engineering - Singapore, Singapore, Singapore Duration: 17 Nov 2022 → 18 Nov 2022 Conference number: 14 https://conf.researchr.org/home/ssbse-2022 |
Publication series
Name | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|
Volume | 13711 LNCS |
ISSN (Print) | 0302-9743 |
ISSN (Electronic) | 1611-3349 |
Conference
Conference | 14th Symposium on Search-based Software Engineering |
---|---|
Abbreviated title | SSBSE |
Country/Territory | Singapore |
City | Singapore |
Period | 17/11/22 → 18/11/22 |
Internet address |
Bibliographical note
Green Open Access added to TU Delft Institutional Repository 'You share, we take care!' - Taverne project https://www.openaccess.nl/en/you-share-we-take-careOtherwise as indicated in the copyright section: the publisher is the copyright holder of this work and the author uses the Dutch legislation to make this work public.
Fingerprint
Dive into the research topics of 'Guess What: Test Case Generation for Javascript with Unsupervised Probabilistic Type Inference'. Together they form a unique fingerprint.Prizes
-
SSBSE 2022 Best Paper Award
Stallenberg, D.M. (Recipient), Olsthoorn, M.J.G. (Recipient) & Panichella, A. (Recipient), 17 Nov 2022
Prize: Prize (including medals and awards)
File