mlsanityData to 7 Oct 2026

MultiFileTest: A Multi-File-Level LLM Unit Test Generation Benchmark and Impact of Error Fixing Mechanisms

arXiv 2502.06556 ↗First posted 10 Feb 2025cs.SE cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

Unit test generation has become a promising and important Large Language Model (LLM) use case. However, existing evaluation benchmarks for LLM unit test generation focus on function- or class-level code (single-file) rather than more practical and challenging multi-file-level codebases. To address such a limitation, we propose MultiFileTest, a multi-file-level benchmark for unit test generation covering Python, Java, and JavaScript. MultiFileTest features 20 moderate-sized and high-quality projects per language. We evaluate eleven frontier LLMs on MultiFileTest, and the results show that most frontier LLMs tested exhibit moderate performance on MultiFileTest, highlighting the difficulty of MultiFileTest. We also conduct a thorough error analysis, which shows that even advanced LLMs, such as Gemini-3.0-Pro, exhibit basic yet critical errors, including executability and cascade errors. Motivated by this observation, we further evaluate all frontier LLMs under manual error-fixing and self-error-fixing scenarios to assess their potential when equipped with error-fixing mechanisms. Our code and dataset is available at hrefhttps://github.com/YiboWANG214/ProjectTestMultiFileTest.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 25 of its 41 references that are in the map. First posted on arXiv 10 Feb 2025.

Builds on

25 of 41 references.

References · 25

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2023Qwen Technical Reportcited by 3,273
  5. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  6. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  9. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  10. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  11. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
  12. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
13 more
  1. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  2. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  3. 2024CodeGemma: Open Code Models Based on Gemmacited by 145
  4. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
  5. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  6. 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 51
  7. 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 49
  8. 2024HITS: High-coverage LLM-based Unit Test Generation via Method Slicingcited by 37
  9. 2025Dynamic Scaling of Unit Tests for Code Reward Modelingcited by 31
  10. 2023Nuances are the Key: Unlocking ChatGPT to Find Failure-Inducing Tests with Differential Promptingcited by 23
  11. 2020Automated Unit Test Generation for Pythoncited by 18
  12. 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Taskscited by 8
  13. 2024Enhancing Large Language Models for Text-to-Testcase Generationcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 1.

4 papers.