Code Without Context: Can We Trust LLMs to Test Software from Informal Descriptions?

Amneh Al Abdi, Saad Ezzini


Abstract
Recent advances in Large Language Models (LLMs) have shown their strong abilities in several tasks, such as text understanding and generation. In several domains, such as software engineering, LLMs are increasingly used to automate related tasks. However, LLM-generated outputs still raise major concerns about robustness and reliability, especially in real-world use. These concerns are especially important in cases where the available inputs are informal natural language rather than structured inputs, which raises issues related to the trustworthiness and potential risks of LLM outputs. This paper aims to evaluate LLMs for the automated test case generation task in a weaker-input setting, relying solely on their understanding of these unstructured inputs. A dataset of 191 programming problems is used to evaluate a general-purpose LLM, GPT-5-mini, and a code-specialized LLM, Qwen2.5-Coder-7B. The generated test cases are executed on reference Python solutions and evaluated in terms of both test-level and problem-level pass rates. The results show that GPT-5-mini outperformed Qwen2.5-Coder-7B in terms of both performance metrics, with 63.72% and 59.16% for test-level and problem-level, respectively, while Qwen2.5-Coder-7B achieves only 21.62% and 2.09% test-level and problem-level pass rates, respectively. The results of this study indicate that both models have limitations in understanding the semantics of informal natural language descriptions, and provide early insight into the feasibility and limitations of LLM-based test case generation using only natural language descriptions. These results also raise concerns related to the safe deployment of LLMs and potential risks, including undetected incorrect interpretations, especially in automated workflows and safety-critical applications.
Anthology ID:
2026.nlpaics-1.5
Volume:
Proceedings of the Second International Conference on Natural Language Processing and Artificial Intelligence for Cyber Security
Month:
June
Year:
2026
Address:
Alicante, Spain
Editors:
Ruslan Mitkov, Rafael Muñoz, Elena Lloret, Tharindu Ranasinghe, Ernesto L. Estevanell-Valladares, Salima Lamsiyah, Andrés Montoyo, Saad Ezzini
Venue:
NLPAICS
SIG:
Publisher:
Department of Languages and Information Systems, University of Alicante
Note:
Pages:
46–54
Language:
URL:
https://aclanthology.org/2026.nlpaics-1.5/
DOI:
Bibkey:
Cite (ACL):
Amneh Al Abdi and Saad Ezzini. 2026. Code Without Context: Can We Trust LLMs to Test Software from Informal Descriptions?. In Proceedings of the Second International Conference on Natural Language Processing and Artificial Intelligence for Cyber Security, pages 46–54, Alicante, Spain. Department of Languages and Information Systems, University of Alicante.
Cite (Informal):
Code Without Context: Can We Trust LLMs to Test Software from Informal Descriptions? (Al Abdi & Ezzini, NLPAICS 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.nlpaics-1.5.pdf