mlsanityData to 7 Oct 2026

Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications

arXiv 2608.08413 ↗First posted 9 Aug 2026cs.SEcited by 1

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

Abstract (arXiv)

Agents built on large language models (LLMs) are increasingly used to build applications that perform complex, multi-step tasks involving reasoning, tool use, and interaction with external environments. Despite rapid progress in benchmarking LLM-based agents, very few studies have attempted to understand how such systems are tested in practice. In particular, testing levels, objectives, data patterns, test complexity, and validation strategies for agent applications remain underexplored. In this paper, we present an empirical study of testing practices in LLM-based agent applications using a large corpus of mined open-source projects. We construct a large-scale dataset of agent applications, tools, and tests, and manually label 2,572 test methods from 240 modules. From this analysis, we derive a taxonomy of 23 testing patterns across test fixtures, data, objectives, and assertions, and characterize tests by level (unit, module, integration). We complement this with structured interviews of 10 senior industry practitioners building agentic systems. Our results show that testing of LLM-based agent applications is dominated by narrowly scoped unit tests, with limited coverage of complex interactions, realistic scenarios, and non-functional requirements. Tests frequently rely on simplistic inputs, heavy mocking, and shallow validation, and agent-related tests exhibit low structural complexity. While industry practice places greater emphasis on non-functional testing than open-source projects, both reveal common gaps, including the lack of formal testing foundations, unclear test objectives, and challenges in generating high-quality test data. Based on these findings, we outline research directions toward more systematic and rigorous testing of agent applications, including foundations for agent testability, formalized test objectives, and fault-based testing techniques.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 31 of its 90 references that are in the map. First posted on arXiv 9 Aug 2026.

Builds on

31 of 90 references.

Closest ancestors · 9

Same direction, newest first

  1. 2026ReliabilityBench: Evaluating LLM Agent Reliability Under Production-Like Stress Conditions3 Jan
  2. 2025An Empirical Study of Agent Developer Practices in AI Agent Frameworks1 Dec
  3. 2025Agentic Property-Based Testing: Finding Bugs Across the Python Ecosystem10 Oct
  4. 2025An Empirical Study of Testing Practices in Open Source AI Agent Frameworks and Agentic Applications23 Sep
  5. 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
  6. 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
  7. 2025Interactive Debugging and Steering of Multi-Agent AI Systems3 Mar
  8. 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy1 Mar
  9. 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep

Other references · 22

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  2. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  3. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  4. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,280
  5. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
  6. 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,134
  7. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
  8. 2025MultiAgentBench: Evaluating the Collaboration and Competition of LLM agentscited by 169
  9. 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 95
  10. 2025AgentVigil: Generic Black-Box Red-teaming for Indirect Prompt Injection against LLM Agentscited by 42
  11. 2024User Modeling and User Profiling: A Comprehensive Surveycited by 29
  12. 2018What's in a GitHub Star? Understanding Repository Starring Practices in a Social Coding Platformcited by 25
10 more
  1. 2025Beyond the Final Answer: Evaluating the Reasoning Trajectories of Tool-Augmented Agentscited by 20
  2. 2025Agentic AI Needs a Systems Theorycited by 19
  3. 2017Chaos Engineeringcited by 18
  4. 2022Scalpel: The Python Static Analysis Frameworkcited by 9
  5. 2026ChainFuzzer: Greybox Fuzzing for Workflow-Level Multi-Tool Vulnerabilities in LLM Agentscited by 8
  6. 2025WebGraphEval: Multi-Turn Trajectory Evaluation for Web Agents using Graph Representationcited by 7
  7. 2018A survey on software testabilitycited by 6
  8. 2025Rethinking Testing for LLM Applications: Characteristics, Challenges, and a Lightweight Interaction Protocolcited by 6
  9. 2026A Control-Theoretic Foundation for Agentic Systemscited by 4
  10. 2021Test case generation for agent-based models: A systematic literature reviewcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Automated structural testing of LLM-based agents: methods, framework, and case studies
  2. 2026A Large-Scale Empirical Study of Quality Assurance Practices and Gaps in AI Agents
  3. 2026Multi-Agent LLM Collaboration for Unit Test Generation via Human-Testing-Inspired Workflows
  4. 2023AgentBench: Evaluating LLMs as Agents
  5. 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agents
  6. 2026Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild
  7. 2023Towards Autonomous Testing Agents via Conversational Large Language Models
  8. 2024AgentQuest: A Modular Benchmark Framework to Measure Progress and Improve LLM Agents