Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large Language Models (LLMs) and Multi-Agent LLMs (MALLMs) introduce non-determinism unlike traditional or machine learning software, requiring new approaches to verifying correctness beyond simple output comparisons or statistical accuracy over test datasets. This paper presents a taxonomy for LLM test case design, informed by research literature and our experience. Each facet is exemplified, and we conduct an LLM-assisted analysis of six open-source testing frameworks, perform a sensitivity study of an agent-based system across different model configurations, and provide working examples contrasting atomic and aggregated test cases. We identify key variation points that impact test correctness and highlight open challenges that the research, industry, and open-source communities must address as LLMs become integral to software systems. Our taxonomy defines four facets of LLM test case design, addressing ambiguity in both inputs and outputs while establishing best practices. It distinguishes variability in goals, the system under test, and inputs, and introduces two key oracle types: atomic and aggregated. Our findings reveal that current tools treat test executions as isolated events, lack explicit aggregation mechanisms, and inadequately capture variability across model versions, configurations, and repeated runs. This highlights the need for viewing correctness as a distribution of outcomes rather than a binary property, requiring closer collaboration between academia and practitioners to establish mature, variability-aware testing methodologies.
Key facts. Cited by 8 papers 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 20 of its 60 references that are in the map. First posted on arXiv 1 Mar 2025.
Builds on
20 of 60 references.
Closest ancestors · 1
Same direction, newest first
Other references · 19
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2023A Survey on Evaluation of Large Language Modelscited by 1,227
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 140
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
- 2024Non-Determinism of "Deterministic" LLM Settingscited by 84
- 2024RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Modelscited by 84
- 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
- 2018On Testing Machine Learning Programscited by 48
- 2023Explainable Automated Debugging via Large Language Model-driven Scientific Debuggingcited by 40
7 more
- 2023An Integrative Survey on Mental Health Conversational Agents to Bridge Computer Science and Medical Perspectivescited by 16
- 2023Evaluating Diverse Large Language Models for Automatic and General Bug Reproductioncited by 12
- 2024Test Oracle Automation in the era of LLMscited by 11
- 2022Generating and Detecting True Ambiguity: A Forgotten Danger in DNN Supervision Testingcited by 8
- 2025Automating a Complete Software Test Process Using LLMs: An Automotive Case Studycited by 8
- 2024A Software Engineering Perspective on Testing Large Language Models: Research, Practice, Tools and Benchmarkscited by 5
- 2024Assessing the Robustness of LLM-based NLP Software via Automated Testingcited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 7.
8 papers.
- 2025An Empirical Study of Testing Practices in Open Source AI Agent Frameworks and Agentic Applicationscited by 14
- 2026Automated Self-Testing as a Quality Gate: Evidence-Driven Release Management for LLM Applicationscited by 3
- 2026The Semi-Executable Stack: Agentic Software Engineering and the Expanding Scope of SEcited by 2
- 2026The Stability Trap: Evaluating the Reliability of LLM-Based Instruction Adherence Auditingcited by 1
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applicationscited by 1
- 2026AVISE: Framework for Evaluating the Security of AI Systemscited by 0
- 2026SenWorld: A Digital-Twin Simulation for Generating Context-Rich Evaluation Datacited by 0
- 2026Testing and Evaluation of Agentic AI Systems In Military Command and Controlcited by 0
- 2026Testing and Evaluation of Agentic AI Systems In Military Command and Control20 Aug 2026
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications9 Aug 2026
- 2026SenWorld: A Digital-Twin Simulation for Generating Context-Rich Evaluation Data22 Jul 2026
- 2026AVISE: Framework for Evaluating the Security of AI Systems22 Apr 2026
- 2026The Semi-Executable Stack: Agentic Software Engineering and the Expanding Scope of SE16 Apr 2026
- 2026Automated Self-Testing as a Quality Gate: Evidence-Driven Release Management for LLM Applications13 Mar 2026
- 2026The Stability Trap: Evaluating the Reliability of LLM-Based Instruction Adherence Auditing16 Jan 2026
- 2025An Empirical Study of Testing Practices in Open Source AI Agent Frameworks and Agentic Applications23 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025Rethinking Testing for LLM Applications: Characteristics, Challenges, and a Lightweight Interaction Protocol
- 2026LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
- 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
- 2026Multi-Agent LLM Collaboration for Unit Test Generation via Human-Testing-Inspired Workflows
- 2023Towards Autonomous Testing Agents via Conversational Large Language Models
- 2024The Potential of LLMs in Automating Software Testing: From Generation to Reporting
- 2026Bidirectional Empowerment of Metamorphic Testing and Large Language Models: A Systematic Survey
- 2025On the Soundness and Consistency of LLM Agents for Executing Test Cases Written in Natural Language