Test Expansion
Test expansion uses a LLM prompt to expand a test and make it more complex. It can be applied repeatedly to generate a set of tests with different levels of complexity.
For example,
The quick fox leaped over 10 fences.
becomes
In a quiet meadow, the quick brown fox daringly leaped over a total of ten tall, wooden fences, amazing the onlooking wildlife with its agility and grace.
Configuration
Section titled “Configuration”The number of test expansions can be configured in the prompt frontmatter or via command line parameters.
testExpansions
: The number of test expansions to generate. This is a positive integer. The default value is1
.- to disable test expansion, set
testExpansions
to0
.
---testExpansions: 0---
- to expand twice, set
testExpansions
to2
.
---testExpansions: 2---