Most automated test-generation tools aim to cover more branches of a program or turn a particular piece of code into a test. IntentionTest instead starts with a validation intention: the test scenario, precondition and expected result a developer wants to check.

The system finds a reusable test from the same project, then uses a large language model to edit it for the new intention. It also supplies relevant project code and global variables as context, helping the generated test use the project’s existing patterns.