Guess What: Test Case Generation for Javascript with Unsupervised Probabilistic Type Inference

Research output: Chapter in Book/Conference proceedings/Edited volumeConference contributionScientificpeer-review

58 Downloads (Pure)

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 languageEnglish
Title of host publicationSearch-Based Software Engineering - 14th International Symposium, SSBSE 2022, Proceedings
Publication statusAccepted/In press - 2022

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.

Cite this