Features
UTgen is an automatic Java unit test generation tool designed for Maven and Gradle projects. As a plugin of IntelliJ IDEA, UTgen provides unit test case generation support with out-of-the-box availability. It has the following key features:
- Users can right-click a method name, class name, class file, or package directory to generate a test case.
- A test case contains the input, method body,
assertion , and comments. - The tool ensures the maximum branch coverage and the minimum number of tests when generating test cases.
- Users can set a desired test case root directory and choose the JUnit 4 or JUnit 5 test framework.
- The tool supports two case rendering policies (retain and overwrite).
- The tool supports the
mock technique and allows a test generation timeout interval. - The tool supports JDK 8, 11, and 17.
- The tool supports Java projects developed using Spring Boot 2.x.
Parent topic: Introduction