The test generation uses context-aware analysis to create appropriate test cases based on the selected code element's functionality and structure.
Simply place your cursor on or select a code element like a method or class, then invoke this intention to generate test code automatically.
Example usage:
public int add(int a, int b) {
return a + b;
}
This intention will generate appropriate test cases that verify the functionality of the selected code.
The test generation analyzes method parameters, return types, and behavior to create comprehensive tests.
You can customize test generation settings through Settings/Preferences | Tools | AutoDev.