Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Tests increasingly participate in the decisions made by large language models and software engineering agents. They specify intended behavior, guide program construction and repair, select candidates, constrain transformations, and provide execution evidence for software analysis. These uses draw on test-driven development, yet differ substantially in test order, oracle availability, editable artifacts, and the role of execution. We present a structured scoping survey organized around the question of what decision a test changes. The review integrates 87 research and supporting records, with method- or protocol-level extraction for 83 records, alongside a separate collection of five practice resources. We distinguish the Red--Green--Refactor cycle from test-conditioned generation, execution-guided refinement, test-mediated analysis, and evaluation-only testing. We then compare code generation, repair, translation, refactoring, clone detection, code search, localization, training-data construction, and formal-specification validation. A dedicated analysis examines how agent workflows and reusable skills encode testing procedures and how their effects are evaluated. Across these tasks, the evidence supports treating test availability, test validity, feedback use, and evaluation independence as separate properties. Test passing alone does not establish behavioral equivalence, effective feedback, or process adherence; aggregate improvements can also conceal different outcomes across models, tasks, and denominators. We synthesize these distinctions into a mechanism taxonomy, a cross-task comparison, and a protocol-sensitive evidence analysis, and identify research directions in oracle validation, causal evaluation, long-horizon maintenance, and reusable test-driven agent capabilities
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 78 of its 93 references that are in the map. First posted on arXiv 10 Sep 2026.
Builds on
78 of 93 references.
Closest ancestors · 21
Same direction, newest first
- 2026TDD-Agent: Test-Driven Reasoning for Code Generation17 Aug
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoring2 Aug
- 2026Vibe Coding: An Experiment with Test-Driven Development24 Jul
- 2026Guardrails Beat Guidance: A Large-Scale Study of Rules, Skills, and Persistent Configuration for Coding Agents13 Apr
- 2026SkillMOO: Multi-Objective Optimization of Agent Skills for Software Engineering10 Apr
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks25 Mar
- 2026TDAD: Test-Driven Agentic Development - Reducing Code Regressions in AI Coding Agents via Graph-Based Impact Analysis18 Mar
- 2026SWE-Skills-Bench: Do Agent Skills Actually Help in Real-World Software Engineering?16 Mar
- 2026Test-Driven AI Agent Definition (TDAD): Compiling Tool-Using Agents from Behavioral Specifications9 Mar
- 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?4 Mar
- 2026SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration4 Mar
- 2026RepoMod-Bench: A Benchmark for Code Repository Modernization via Implementation-Agnostic Testing26 Feb
9 more
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?12 Feb
- 2026Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repair27 Jan
- 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios20 Dec
- 2025TDFlow: Agentic Workflows for Test Driven Development27 Oct
- 2025A Survey of Vibe Coding with Large Language Models14 Oct
- 2025Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Development29 Sep
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar
Other references · 57
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2026SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Taskscited by 289
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 230
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
38 more
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
- 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 100
- 2025S*: Test Time Scaling for Code Generationcited by 95
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2024Code Repair with LLMs gives an Exploration-Exploitation Tradeoffcited by 50
- 2024LLM-Based Test-Driven Interactive Code Generation: User Study and Empirical Evaluationcited by 46
- 2024A Systematic Literature Review on Large Language Models for Automated Program Repaircited by 37
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
- 2025A Survey of LLM-based Automated Program Repair: Taxonomies, Design Paradigms, and Applicationscited by 24
- 2026MUSE-Autoskill: Self-Evolving Agents via Skill Creation, Memory, Management, and Evaluationcited by 23
- 2024ThinkRepair: Self-Directed Automated Program Repaircited by 22
- 2024ContrastRepair: Enhancing Conversation-Based Automated Program Repair via Contrastive Test Case Pairscited by 19
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
- 2025SWE-Flow: Synthesizing Software Engineering Data in a Test-Driven Mannercited by 18
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applicationscited by 17
- 2024RePair: Automated Program Repair with Process-based Feedbackcited by 16
- 2023Understanding Programs by Exploiting (Fuzzing) Test Casescited by 13
- 2025AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing Testscited by 11
- 2026SWE-Refactor: A Repository-Level Benchmark for Real-World LLM-Based Code Refactoringcited by 11
- 2025Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selectioncited by 10
- 2023PerfRL: A Small Language Model Framework for Efficient Code Optimizationcited by 8
- 2026Skill-to-LoRA: From Using Skills to Learning Behaviors for Token-Efficient LLM Agentscited by 8
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
- 2025Repair-R1: Better Test Before Repaircited by 6
- 2026Agent Skill Evaluation and Evolution: Frameworks and Benchmarkscited by 6
- 2025Tests as Prompt: A Test-Driven-Development Benchmark for LLM Code Generationcited by 5
- 2023Isolating Compiler Bugs by Generating Effective Witness Programs with Large Language Modelscited by 4
- 2023LLM4TDD: Best Practices for Test Driven Development Using Large Language Modelscited by 4
- 2024Automated Unit Test Refactoringcited by 4
- 2024Generative AI for Test Driven Development: Preliminary Resultscited by 3
- 2026Scaling Test-Driven Code Generation from Functions to Classes: An Empirical Studycited by 3
- 2026A Differential Fuzzing-Based Evaluation of Functional Equivalence in LLM-Generated Code Refactoringscited by 3
- 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generationcited by 2
- 2026Security Tests as Executable Specifications for LLM Code Generation: Benefits, Trade-offs, and Coverage Limitscited by 2
- 2026SKILLER: Language-Level Reinforcement Learning for Reusable Skill Extraction in Small Language Modelscited by 2
- 2025HyClone: Bridging LLM Understanding and Dynamic Execution for Semantic Code Clone Detectioncited by 1
50 most cited of 57 All 57 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agents
- 2026On the risk of coding before testing: An empirical study on LLM-based test generation workflow
- 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution
- 2026Sakura: An Approach for Generating Complex Tests from Natural Language Test Descriptions ↗
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents
- 2026TestJack: Should you trust the results in coding benchmarks? Agentic Coding Benchmarks Auditing via Evaluator Evolution
- 2026How Do Practitioners Build SE Agents? Insights from a Mixed-Methods Study