LLMutantKiller: Using Large Language Models to Generate Tests That Kill Mutants
Farideh Khalili, Aidan Domondon, Harshit Garg, Frank Tip
Key points
From the paper's conclusion- We present an LLM-based test generation technique for killing surviving mutants, implemented in a tool called LLMutantKiller.
- The technique is feedback-directed, where the LLM is re-prompted with scenario-specific feedback if a test does not kill a given mutant.
- LLMutantKiller kills up to 95.3% of the surviving mutants classified as inducing behavioral changes.
Abstract
The primary goal of mutation testing is to assess the quality of an application’s test suite. This is accomplished by introducing syntactic changes into a program and determining if any test failures occur for the resulting mutated program, commonly referred to as a mutant. If so, the mutant is said to be killed, confirming that the test suite is of sufficient quality to detect the introduced fault. A problem arises if a mutant does not impact the behavior of any test. Such a surviving mutant may occur for two reasons: either it involves a semantics- preserving program transformation or the test suite is not strong enough. Determining why a mutant survives often involves complex, non-local reasoning. This paper presents an LLM-based test generation technique for killing surviving mutants, implemented in a tool called LLMutantKiller. The technique is feedback-directed in the sense that if a test is produced that does not kill a given mutant, the LLM is re-prompted up to a specified number of times with scenario-specific feedback such as syntax errors, dependency violations, or execution logs (e.g., failing assertions) and asked to try again. We evaluate LLMutantKiller on 915 randomly selected surviving mutants produced by StrykerJS, a state-of-the-art mutation testing tool, across 13 open-source JavaScript/TypeScript applications. The results show that LLMutantKiller kills up to 95.3% of the surviving mutants classified as inducing behavioral changes and that it rarely produces invalid tests.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- We present an LLM-based test generation technique for killing surviving mutants, implemented in a tool called LLMutantKiller.
- The technique is feedback-directed, where the LLM is re-prompted with scenario-specific feedback if a test does not kill a given mutant.
- LLMutantKiller kills up to 95.3% of the surviving mutants classified as inducing behavioral changes.
Readers' thoughts
No reader thoughts yet.
Related papers
- MuMuTestUp: Mutation-Based Multi-agent Test Case UpdateProceedings of the ACM on software engineering. · 2026
- Mutation-Guided Unit Test Generation With a Large Language ModelIEEE Transactions on Software Engineering · 2026
- A Comprehensive Study on Large Language Models for Mutation TestingACM Transactions on Software Engineering and Methodology · 2026
- Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study)Proceedings of the ACM on software engineering. · 2026
- Test vs Mutant: Adversarial LLM Agents for Robust Unit Test GenerationProceedings of the ACM on software engineering. · 2026
- Combining LLM and Dynamic Analysis for Universal Testing of Static Application Security Testing ToolsarXiv · 2026