Getting started

Learn how to get the most out of Sapient, including how to to write valid test code within complex environments, and more.

1

Creating Your Account

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.

Email - Darkweb X Webflow Template
Your account is being setup
Oops! Something went wrong while submitting the form.

2

Installing Sapient into your IDE

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:

3

Launching Sapient

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:

4

Accessing AI Generated Test Cases

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:

5

Preview (and Customize) Generated Test Code

Preview and, if desired, customize the generated unit tests for the selected test cases:

6

Discovering Poorly Written Code

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: