2024

Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLM

Ryan, Gabriel, Jain, Siddhartha, Shang, Mingyue et al.

Understand

Testing plays a pivotal role in ensuring software quality, yet conventional Search Based Software Testing (SBST) methods often struggle with complex software units, achieving suboptimal test coverage.

  • Recent works using large language models (LLMs) for test generation have focused on improving generation quality through optimizing the test generation context and correcting errors in model outputs, but use fixed prompting strategies that prompt the model to generate tests without additional guidance.
  • As a result LLM-generated testsuites still suffer from low coverage.
  • In this paper, we present SymPrompt, a code-aware prompting strategy for LLMs in test generation.

Reading the bibliography…