Enriching Mutation Testing With Innovative Method Invocation Mutation: Filling the Crucial Missing Piece of the Puzzle
Mutation testing aims to simulate real-world defects, but existing tools often struggle to replicate method invocation defects accurately. To address this, we propose MIN (Method INvocation mutator), which uses a mapping strategy to pair method names with corresponding values, ensuring that methods share argument and return types. This method enhances the feasibility and realism of mutants by considering factors such as library methods, access control, inheritance, and static methods. Experimental results show that integrating MIN into Major (a popular mutation tool) improves semantic similarity to real defects by 11%, increases mutant set diversity to 97.5%, and reduces undetected faults by 38.5%. Furthermore, MIN’s performance rivals that of state-of-the-art machine learning-based mutators like CodeBERT, with a 10x speed advantage over CodeBERT and 4x over DeepMutation in generating compilable mutants. These findings demonstrate that MIN can significantly enhance defect simulation and improve the efficiency of mutation testing.
Authors
- Yuming Zhou (ORCID: https://orcid.org/0000-0002-4645-2526)
- Yibiao Yang (ORCID: https://orcid.org/0000-0003-1153-2013)
- Mike Papadakis (ORCID: https://orcid.org/0000-0003-1852-2547)
- Zeyu Lu (ORCID: https://orcid.org/0009-0001-7370-6421)
- Yang Wang (ORCID: https://orcid.org/0000-0002-6771-2139)
- Peng Zhang (ORCID: https://orcid.org/0000-0003-2902-2249)
Institutions
- University of Luxembourg (LU)
- Nanjing University (CN)
Publication Details
- Journal
- IEEE Transactions on Software Engineering
- Published
- 2025-06-19
- DOI
- https://doi.org/10.1109/tse.2025.3573751
- Citations
- 1
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.31