Learn how to get the most out of Sapient, including how to to write valid test code within complex environments, and more.
Enter your email address here to initialize your account. You'll be asked again for the same email address in your IDE to set a password. Both emails must match.
Open IntelliJ IDEA and go to Preferences > Plugins
Search for Sapient in the plugin marketplace:
After you find Sapient AI Test Coder, click on Install:
There are two ways to launch sapient:
Option 1. Find the blue icon to the left of your methods in the line marker area
Option 2. Right click within any Java source code, then click on Sapient AI:
View test cases for the selected method that Sapient has determined to generate. You can view each test case, or you can Select All > Generate Test Code to generate your unit tests with a single click:
Preview and, if desired, customize the generated unit tests for the selected test cases:
Sapient provides feedback if your original code is written poorly, resulting in untestable code. Use the Learn More link to examine ways to improve your code before generating Unit Tests: