CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models
University of British Columbia · Microsoft (United States)
Abstract
Search-based software testing (SBST) generates high-coverage test cases for programs under test with a combination of test case generation and mutation. SBST's performance relies on there being a reasonable probability of generating test cases that exercise the core logic of the program under test. Given such test cases, SBST can then explore the space around them to exercise various parts of the program. This paper explores whether Large Language Models (LLMs) of code, such as OpenAI's Codex, can be used to help SBST's exploration. Our proposed algorithm, CodaMosa, conducts SBST until its coverage improvements stall, then asks Codex to provide example test cases for under-covered functions. These examples…
Citation impact
- FWCI
- 46.25
- Percentile
- 100%
- References
- 67
Authors
4Topics & keywords
- Test (biology)
- Computer science
- Code coverage
- Language model
- Machine learning
- Code (set theory)
- Space (punctuation)
- Artificial intelligence
- Quality Education