mlsanityData to 14 Oct 2026

Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study)

arXiv 2607.22880 ↗First posted 24 Jul 2026cs.SE cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Recent advances in large language models (LLMs) have driven growing interest in using LLMs to automate test generation. Prior work commonly evaluates generated test suites using proxy metrics such as code coverage and mutation score. However, studies by Inozemtseva et al. and Papadakis et al. show that, for human-written tests, correlations among coverage, mutation, and real-bug detection can largely vanish once test suite size is controlled, raising concerns about the validity of evaluations based on proxy metrics. It also remains unclear whether these conclusions carry over to LLM-generated tests, given that prevailing LLM-based test-generation workflows differ substantially from traditional approaches. In this paper, we conduct a large-scale replication study of these two prior works using a wide range of test suites generated by a diverse set of LLMs, and re-examine the relationships among coverage, mutation, and real-bug detection effectiveness. Our findings diverge substantially from prior results. We show that the usefulness of coverage and mutation is highly context-dependent: in regression-style settings where the code provided to the LLM can be reasonably assumed bug-free, these metrics can provide meaningful signals when comparing across models; in another common scenario where the code-under-test may already be buggy and the goal is to expose the bug within the code-under-test, they no longer serve as reliable indicators. We also find little evidence that test suite size is a dominant confounder for correlations among coverage, mutation, and real-bug detection for LLM-generated tests. Based on these findings, we discuss how to interpret results from prior studies and provide actionable guidance for evaluating LLM-based test generation.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 61 references that are in the map. First posted on arXiv 24 Jul 2026.

Builds on

25 of 61 references.

References · 25

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2021Measuring Coding Challenge Competence With APPScited by 902
  5. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
  6. 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
  7. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 96
  8. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  9. 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 52
  10. 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 51
  11. 2020On Learning Meaningful Assert Statements for Unit Test Casescited by 42
  12. 2024TESTEVAL: Benchmarking Large Language Models for Test Case Generationcited by 40
13 more
  1. 2024BugsInPy: A Database of Existing Bugs in Python Programs to Enable Controlled Testing and Debugging Studiescited by 36
  2. 2024On the Evaluation of Large Language Models in Unit Test Generationcited by 34
  3. 2023A3Test: Assertion-Augmented Automated Test Case Generationcited by 33
  4. 2023ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generationcited by 32
  5. 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
  6. 2024A Large-scale Empirical Study on Fine-tuning Large Language Models for Unit Testingcited by 15
  7. 2024GitBug-Java: A Reproducible Benchmark of Recent Java Bugscited by 14
  8. 2023Unit Test Generation using Generative AI : A Comparative Performance Analysis of Autogeneration Toolscited by 13
  9. 2024Measuring the Influence of Incorrect Code on Test Generationcited by 11
  10. 2024Doc2OracLL: Investigating the Impact of Documentation on LLM-based Test Oracle Generationcited by 10
  11. 2024A System for Automated Unit Test Generation Using Large Language Models and Assessment of Generated Test Suitescited by 8
  12. 2025Test Wars: A Comparative Study of SBST, Symbolic Execution, and LLM-Based Approaches to Unit Test Generationcited by 7
  13. 2025Large Language Models for Unit Testing: A Systematic Literature Reviewcited by 6

Built on by

Not cited yet.