cs.SEApr 15, 2026

LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB

Authors: Vekil Bekmyradov, Noah C. Pütz, Thomas Bartz-Beielstein

Organizations: THK-AI Research Cluster, TH Köln

Abstract

Large Language Models (LLMs) have achieved impressive results on public benchmarks, often leading to claims of advanced reasoning and understanding. However, recent research in cognitive science reveals that these models sometimes rely on shallow heuristics and memorization, taking shortcuts rather than demonstrating genuine cognitive abilities. This paper investigates LLM behavior in automated test generation for software, contrasting performance on an open-source system (LevelDB) with SAP HANA, one of the most widely deployed commercial database systems worldwide, whose proprietary codebase is guaranteed to be absent from training data. We combine cognitive evaluation principles, drawing on Mitchell's mechanism-focused assessment methodology, with empirical software testing, employing mutation score and iterative compiler-feedback repair loops to assess both accuracy and underlying reasoning strategies. Results show that LLMs excel on familiar, open-source benchmarks but struggle with unseen, complex domains, often prioritizing compilability over semantic effectiveness. These findings provide independent software engineering evidence for the broader claim that current LLMs lack robust reasoning, and highlight the need for evaluation frameworks that penalize trivial shortcuts and reward true generalization.

Figures & tables

Explore similar work

CardsList
  1. Evaluating LLM-Based Test Generation Under Software Evolution

    Mar 24, 2026Sabaat Haroon, Mohammad Taha Khan, Muhammad Ali GulzarAutomated Test GenerationAutomated Software Testing

  2. SWE-Mutation: Can LLMs Generate Reliable Test Suites in Software Engineering?

    May 21, 2026Yuxuan Sun, Yuze Zhao, Yufeng Wang +6LLM EvaluationAutomated Software Testing

  3. Evaluating the Formal Reasoning Capabilities of Large Language Models through Chomsky Hierarchy

    Apr 3, 2026Yihong Dong, Jianha Xiao, Xue Jiang +7LLM EvaluationEfficient Language Model Reasoning