Guess What

Test Case Generation for Javascript with Unsupervised Probabilistic Type Inference

Conference Paper (2022)
Author(s)

D.M. Stallenberg (TU Delft - Software Engineering)

Mitchell Olsthoorn (TU Delft - Software Engineering)

A. Panichella (TU Delft - Software Engineering)

Research Group
Software Engineering
Copyright
© 2022 D.M. Stallenberg, Mitchell Olsthoorn, A. Panichella
DOI related publication
https://doi.org/10.1007/978-3-031-21251-2_5
More Info
expand_more
Publication Year
2022
Language
English
Copyright
© 2022 D.M. Stallenberg, Mitchell Olsthoorn, A. Panichella
Research Group
Software Engineering
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-care Otherwise 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.@en
Pages (from-to)
67–82
ISBN (print)
978-3-031-21250-5
ISBN (electronic)
978-3-031-21251-2
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

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.

Files

978_3_031_21251_2_5.pdf
(pdf | 0.539 Mb)
- Embargo expired in 15-05-2023
License info not available