Introduction
UTgen automatically generates unit test (
- 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.
Parent topic: UTgen User Guide (IntelliJ IDEA)