Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

UTgen automatically generates unit test (UT) cases for Java programs managed by Maven or Gradle projects. It is an end-to-end developer tool integrated in IntelliJ and offers plug-and-play 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.