mlsanityData to 24 Nov 2026

ADAPT: Agentic Diff-Aware Patch Testing for Pull Requests

arXiv 2611.16114 ↗Submitted 11 Nov 2026cs.SE cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Modern software development relies on pull requests (PRs) that introduce small, targeted code changes. Once merged, these changes should be protected by focused tests that exercise the behavior the PR introduces, yet developers often submit PRs without such tests, leaving the new behavior unguarded against future regressions. Most test generation techniques target entire software units and optimize objectives such as code coverage rather than the behavior a change introduces, and prior diff-aware approaches have had limited success in capturing it. We propose ADAPT (Agentic Diff-Aware Patch Testing), a regression test generation approach that uses an autonomous coding agent to produce change-focused tests for PRs. Given a PR, the agent analyzes the diff between the base and head versions to identify the modified functions and their context, then plans and generates candidate unit tests. A dedicated fail-to-pass (F2P) verification tool runs each candidate on both versions and, after F2P success, reports which executable changed lines remain uncovered; guided by this feedback, the agent iteratively refines its tests. We evaluate ADAPT on the same 426 real-world PRs used by the prior state-of-the-art baseline, with GPT-4o and GPT-5-mini. ADAPT+GPT-4o reaches an F2P rate of 62.0% (264/426), compared with BLAST's reported 35.4% (151/426), while ADAPT+GPT-5-mini reaches 89.9% (383/426). On 137 PRs shared with Change And Cover (ChaCo), ADAPT achieves full patch coverage on 83.9% of PRs, compared with 79.6% for ChaCo, at considerably lower time and cost. A manual evaluation confirms that the F2P-valid tests target each PR's intended change, with mean scores of up to 4.54/5 for importance, 4.35/5 for assertion strength, and 4.49/5 for readability, often covering behavior beyond the developer-written tests.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 46 of its 79 references that are in the map. Submitted 11 Nov 2026.

Builds on

46 of 79 references.

Closest ancestors · 9

Same direction, newest first

  1. 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring10 Aug
  2. 2026Test Coverage Analysis of Agentic Pull Requests20 Jul
  3. 2026Human-Agent versus Human Pull Requests: A Testing-Focused Characterization and Comparison29 Jan
  4. 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec
  5. 2025TestForge: Feedback-Driven, Agentic Test Suite Generation18 Mar
  6. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  7. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
  8. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  9. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar

Other references · 37

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  2. 2024AutoCodeRover: Autonomous Program Improvementcited by 303
  3. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 200
  4. 2020Unit Test Case Generation with Transformers and Focal Contextcited by 121
  5. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 100
  6. 2024Automated Unit Test Improvement using Large Language Models at Metacited by 80
  7. 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 68
  8. 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 57
  9. 2022Pynguin: Automated Unit Test Generation for Pythoncited by 51
  10. 2024CoverUp: Effective High Coverage Test Generation for Pythoncited by 43
  11. 2024HITS: High-coverage LLM-based Unit Test Generation via Method Slicingcited by 40
  12. 2024TOGLL: Correct and Strong Test Oracle Generation with LLMscited by 26
25 more
  1. 2026SWE-ABS: Adversarial Benchmark Strengthening Exposes Inflated Success Rates on Test-based Benchmarkcited by 20
  2. 2019Automatic Generation of Pull Request Descriptionscited by 14
  3. 2023Unit Test Generation using Generative AI : A Comparative Performance Analysis of Autogeneration Toolscited by 14
  4. 2025Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selectioncited by 14
  5. 2024Leveraging Large Language Models for Enhancing the Understandability of Generated Unit Testscited by 13
  6. 2025FeedbackEval: A Benchmark for Evaluating Large Language Models in Feedback-Driven Code Repair Taskscited by 13
  7. 2021An Empirical Study of Automated Unit Test Generation for Pythoncited by 12
  8. 2019Understanding Flaky Tests: The Developer's Perspectivecited by 9
  9. 2023Towards More Realistic Evaluation for Neural Test Oracle Generationcited by 9
  10. 2025Evaluating LLM-Based Regression Test Generationcited by 7
  11. 2025Automated Generation of Issue-Reproducing Tests by Combining LLMs and Search-Based Testingcited by 7
  12. 2026Learned or Memorized ? Quantifying Memorization Advantage in Code LLMscited by 5
  13. 2026On the risk of coding before testing: An empirical study on LLM-based test generation workflowcited by 5
  14. 2021Using Relative Lines of Code to Guide Automated Test Generation for Pythoncited by 4
  15. 2025Mutation Testing via Iterative Large Language Model-Driven Scientific Debuggingcited by 4
  16. 2025Unit Test Update through LLM-Driven Context Collection and Error-Type-Aware Refinementcited by 4
  17. 2026iCoRe: An Iterative Correlation-Aware Retriever for Bug Reproduction Test Generationcited by 4
  18. 2025Testora: Using Natural Language Intent to Detect Behavioral Regressionscited by 3
  19. 2025YATE: The Role of Test Repair in LLM-Based Unit Test Generationcited by 2
  20. 2026XREPOTEST: Benchmarking Multilingual Repository-Level Unit Test Generation for Large Language Modelscited by 2
  21. 2024Beyond Accuracy: An Empirical Study on Unit Testing in Open-source Deep Learning Projectscited by 1
  22. 2025Enhancing Code Review through Fuzzing and Likely Invariantscited by 1
  23. 2026Change And Cover: Last-Mile, Pull Request-Based Regression Test Augmentationcited by 1
  24. 2026The Impact of Documentation on Test Engagement in Pull Requests in OSScited by 1
  25. 2026PR-Aware Automated Unit Test Generation: Challenges and Opportunitiescited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Do Autonomous Agents Contribute Test Code? A Study of Tests in Agentic Pull Requests
  2. 2026SWEPatchTest: Evaluating Software Tests Beyond Reproduction
  3. 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution
  4. 2026Beyond Isolated Tasks: A Framework for Evaluating Coding Agents on Sequential Software Evolution
  5. 2026Beyond Bug Fixes: An Empirical Investigation of Post-Merge Code Quality Issues in Agent-Generated Pull Requests
  6. 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agents
  7. 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generation
  8. 2026All Smoke, No Alarm: Oracle Signals in Agent-Authored Test Code