PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
April 1, 202226 citationsOpen Access

µBert: Mutation Testing using Pre-Trained Language Models

View Full Paper
RDRenzo DegiovanniMPMike Papadakis

Key Points

Key points are not available for this paper at this time.

Abstract

We introduce µBert, a mutation testing tool that uses a pre-trained language model (CodeBERT) to generate mutants. This is done by masking a token from the expression given as input and using CodeBERT to predict it. Thus, the mutants are generated by replacing the masked tokens with the predicted ones. We evaluate µBert on 40 real faults from Defects4J and show that it can detect 27 out of the 40 faults, while the baseline (PiTest) detects 26 of them. We also show that µBert can be 2 times more cost-effective than PiTest, when the same number of mutants are analysed. Additionally, we evaluate the impact of µBert’s mutants when used by program assertion inference techniques, and show that they can help in producing better specifications. Finally, we discuss about the quality and naturalness of some interesting mutants produced by µBert during our experimental evaluation.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Degiovanni et al. (2022) studied this question.

synapsesocial.com/papers/6a1c2a215b8f4ede65a99978https://doi.org/10.1109/icstw55395.2022.00039
Ask AI
Helpful
Bookmark
Share
View Full Paper