Test Case Generation from Bug Reports via Large Language Models: A Cognitive Layered Evaluation Framework
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are increasingly applied to automated software testing, yet their ability to generalize beyond memorized patterns and reason about natural language bug reports remains unclear. We present a systematic evaluation of LLM reasoning in test case generation, structured around the cognitive layers of Bloom's taxonomy: textitRemember, textitUnderstand, textitApply, textitAnalyze, textitEvaluate, and textitCreate, which progressively assess higher levels of cognitive and reasoning capabilities. Building on the LIBRO framework, we evaluate StarCoder and GPT-4o on Defects4J, GHRB, and mutated variants that introduce linguistic and semantic challenges. Our findings show that both models largely reproduce prior results with minor deviations (textitRemember), exhibit partial robustness to linguistic rephrasings and translations while uncovering unique reproducible bugs (textitUnderstand), but suffer severe performance drops exceeding 60% under identifier mutations (textitApply). Conversely, providing near-identical few-shot examples in an open-book setting improves success rates by up to three times, and component-level analysis reveals that structured technical elements, such as test code and method names, are far more impactful than narrative descriptions for successful test generation (textitAnalyze). These insights illuminate the cognitive processes underlying LLM-generated tests, suggest concrete directions for improving performance, and establish a robust and realistic evaluation paradigm for this task.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Oct 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
- 2025Can LLMs Generate Reliable Test Case Generators? A Study on Competition-Level Programming Problems
- 2026LLM vs. Human Unit Tests: Fault Detection on Real Python Bugs
- 2024Large-scale, Independent and Comprehensive study of the power of LLMs for test case generation
- 2025DISTINCT: A Description-Guided Branch-Consistency Analysis Framework for Non-Regressive Test Case Generation ↗
- 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
- 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation