JAIPilot - AI Unit Test Generator

Generate Robust Unit Tests for Java - Instantly with AI

Description

What is JAIPilot?

JAIPilot is an IntelliJ plugin and VS Code extension that automatically generates robust, high-coverage Java unit tests. It understands method logic, handles mocking, and self-corrects errors so you don’t have to write tests manually.

Can JAIPilot run on pull requests?

Yes. Install the JAIPilot GitHub App to run automated unit test generation workflows for Java pull requests.

Who should use JAIPilot and why?

JAIPilot is ideal for Java developers who want to avoid repetitive boilerplate test code and achieve high test coverage quickly. It’s especially useful if you want reliable tests without switching context or writing prompts manually.

Does JAIPilot store or train on my code?

No, JAIPilot does not store your code or use it for training. Your class data is processed securely from your machine. Logs (if any) are deleted within 30 days. We do not use or retain user data for any model improvement or analytics.

Need help or have issues?

Reach out to us via the JetBrains or VS Code marketplace support pages, or email us at support@jaipilot.com. We’re here to help.

Getting Started

How do I install JAIPilot?

Install from either marketplace: JetBrains IntelliJ Plugin or VS Code Extension. Then restart your IDE to activate JAIPilot.

How do I install JAIPilot on GitHub for PRs?

Install JAIPilot on GitHub to run it on every PR raised and get 80%+ coverage. Install this app on GitHub so it runs on your PRs: https://github.com/marketplace/jaipilot.

  • Automatically generates high quality high coverage unit tests for PRs for your Java codebase
  • All generated tests are fully compilable, executable, and maximize line coverage
  • Analyzes changed Java code and context for every PR to generate high quality meaningful tests
  • Builds, executes, and maximizes line coverage
What do I need to configure?

After installation, sign up for a JAIPilot account. You can top up anytime with usage based credits billing by buying request attempts.

🔑 Important: After signup, you’ll receive a license key in your email. You can also find it anytime in your JAIPilot account page. Paste this key into the JAIPilot settings in IntelliJ or VS Code to activate test generation.
How do I generate tests?

In IntelliJ, right-click any Java class and choose "JAIPilot" -> "Generate Tests". In VS Code, use the JAIPilot extension command to generate tests for your selected class. JAIPilot handles context extraction, generation, and verification.

What can JAIPilot do in CI?

JAIPilot can run unit-test generation and coverage-focused flows on pull requests through the GitHub App integration.

How JAIPilot Works?

What steps does JAIPilot follow?

JAIPilot extracts the class under test, identifies dependencies, builds a clean context, generates the JUnit test class, and compiles the result. If errors occur, it fixes and retries until the output is valid.

What kind of tests are generated?

JAIPilot produces full JUnit test classes, with mock setup using Mockito, and multiple test methods that match your method logic, branches, and edge cases.

What if the test has an error?

JAIPilot detects compilation issues or test failures, captures the error, and automatically retries until the test class is fixed.

What inputs does JAIPilot analyze?

JAIPilot collects the source of the class under test, public method signatures, and all nested POJO types used as inputs or return values to give full context before generating tests.