Otter: Generating Tests from Issues to Validate SWE Patches
Not on the map. Why?
Abstract (arXiv)
While there has been plenty of work on generating tests from existing code, there has been limited work on generating tests from issues. A correct test must validate the code patch that resolves the issue. This paper focuses on the scenario where that code patch does not yet exist. Doing so supports two major use-cases. First, it supports TDD (test-driven development), the discipline of "test first, write code later" that has well-documented benefits for human software engineers. Second, it also validates SWE (software engineering) agents, which generate code patches for resolving issues. This paper introduces TDD-Bench-Verified, a benchmark for generating tests from issues, and Otter, an LLM-based solution for this task. Otter augments LLMs with rule-based analysis to check and repair their outputs, and introduces a novel self-reflective action planner. Experiments show Otter outperforming state-of-the-art systems for generating tests from issues, in addition to enhancing systems that generate patches from issues. We hope that Otter helps make developers more productive at resolving issues and leads to more robust, well-tested code.
Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Builds on 16 of its 21 references that are in the map. First posted on arXiv 7 Feb 2025.
Builds on
16 of 21 references.
References · 16
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2023Instruction Tuning with GPT-4cited by 676
- 2023Instruction Tuning for Large Language Models: A Surveycited by 617
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
- 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 95
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 89
- 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineeringcited by 46
4 more
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
- 2024AEGIS: An Agent-based Framework for General Bug Reproduction from Issue Descriptionscited by 15
- 2024LLMs as Continuous Learners: Improving the Reproduction of Defective Code in Software Issuescited by 10
- 2023Automatic Generation of Test Cases based on Bug Reports: a Feasibility Study with Large Language Modelscited by 8
Built on by
Citing papers per year: 2025: 6; 2026: 18.
24 papers.
Sort:
By area:
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026Scaling Test-Time Compute for Agentic Codingcited by 11
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agentscited by 6
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Actioncited by 4
- 2025PAGENT: Learning to Patch Software Engineering Agentscited by 4
- 2026SWE-Tester: Training Open-Source LLMs for Issue Reproduction in Real-World Repositoriescited by 4
- 2026AnyPoC: Universal Proof-of-Concept Test Generation for Scalable LLM-Based Bug Detectioncited by 4
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Testscited by 4
- 2026Execution-State-Aware LLM Reasoning for Automated Proof-of-Vulnerability Generationcited by 3
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
12 more
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixescited by 2
- 2025AutoCodeSherpa: Symbolic Explanations in AI Coding Agentscited by 1
- 2026Compiling Large Multi-Modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven Perspectivecited by 1
- 2026Program Analysis Guided LLM Agent for Proof-of-Concept Generationcited by 1
- 2026Unlocking Model Potentials Through Adaptive Multi-Agent Scaffolding for Efficient Issue Resolutioncited by 1
- 2026EvoOtter: Evolutionary Reproduction Test Generatorcited by 1
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reportscited by 1
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learningcited by 0
- 2026Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?cited by 0
- 2026DPIAgent: Divide, Protocol, Isolate for Agentic Reproduction Test Generationcited by 0
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
- 2026TestJack: Should you trust the results in coding benchmarks? Agentic Coding Benchmarks Auditing via Evaluator Evolutioncited by 0
- 2026TestJack: Should you trust the results in coding benchmarks? Agentic Coding Benchmarks Auditing via Evaluator Evolution7 Oct 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026DPIAgent: Divide, Protocol, Isolate for Agentic Reproduction Test Generation24 Aug 2026
- 2026Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?30 Jul 2026
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixes22 Jul 2026
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports10 Jul 2026
- 2026EvoOtter: Evolutionary Reproduction Test Generator3 Jul 2026
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests1 Jul 2026
- 2026Unlocking Model Potentials Through Adaptive Multi-Agent Scaffolding for Efficient Issue Resolution24 Jun 2026
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agents3 Jun 2026
- 2026Scaling Test-Time Compute for Agentic Coding16 Apr 2026
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation14 Apr 2026
12 more
- 2026AnyPoC: Universal Proof-of-Concept Test Generation for Scalable LLM-Based Bug Detection13 Apr 2026
- 2026Program Analysis Guided LLM Agent for Proof-of-Concept Generation8 Apr 2026
- 2026Compiling Large Multi-Modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven Perspective14 Feb 2026
- 2026Execution-State-Aware LLM Reasoning for Automated Proof-of-Vulnerability Generation14 Feb 2026
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning29 Jan 2026
- 2026SWE-Tester: Training Open-Source LLMs for Issue Reproduction in Real-World Repositories20 Jan 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025AutoCodeSherpa: Symbolic Explanations in AI Coding Agents30 Jul 2025
- 2025PAGENT: Learning to Patch Software Engineering Agents21 Jun 2025
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun 2025
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs20 Apr 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agentscited by 6
- 2025PAGENT: Learning to Patch Software Engineering Agentscited by 4
- 2026AnyPoC: Universal Proof-of-Concept Test Generation for Scalable LLM-Based Bug Detectioncited by 4
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Testscited by 4
- 2025AutoCodeSherpa: Symbolic Explanations in AI Coding Agentscited by 1
- 2026Compiling Large Multi-Modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven Perspectivecited by 1
- 2026Program Analysis Guided LLM Agent for Proof-of-Concept Generationcited by 1
- 2026Unlocking Model Potentials Through Adaptive Multi-Agent Scaffolding for Efficient Issue Resolutioncited by 1
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reportscited by 1
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learningcited by 0
12 most cited of 16 All 16 (JSON)
- 2026TestJack: Should you trust the results in coding benchmarks? Agentic Coding Benchmarks Auditing via Evaluator Evolution7 Oct 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026DPIAgent: Divide, Protocol, Isolate for Agentic Reproduction Test Generation24 Aug 2026
- 2026Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?30 Jul 2026
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports10 Jul 2026
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests1 Jul 2026
- 2026Unlocking Model Potentials Through Adaptive Multi-Agent Scaffolding for Efficient Issue Resolution24 Jun 2026
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agents3 Jun 2026
- 2026AnyPoC: Universal Proof-of-Concept Test Generation for Scalable LLM-Based Bug Detection13 Apr 2026
- 2026Program Analysis Guided LLM Agent for Proof-of-Concept Generation8 Apr 2026
- 2026Compiling Large Multi-Modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven Perspective14 Feb 2026
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning29 Jan 2026
12 newest of 16 All 16 (JSON)
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
- 2026SWE-Tester: Training Open-Source LLMs for Issue Reproduction in Real-World Repositoriescited by 4
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixescited by 2
- 2026EvoOtter: Evolutionary Reproduction Test Generatorcited by 1
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixes22 Jul 2026
- 2026EvoOtter: Evolutionary Reproduction Test Generator3 Jul 2026
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation14 Apr 2026
- 2026SWE-Tester: Training Open-Source LLMs for Issue Reproduction in Real-World Repositories20 Jan 2026
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs20 Apr 2025