Before creating unit tests, ensure that the following prerequisites are met.
RAM
Depending on project size and complexity, unit test creation may require additional memory. You can change memory allocation for the JVM process in the <INSTALL_DIR>/etc/jtestcli.jvm configuration file (the -Xmx option).
Licensing
The "Unit Test Single Class Creation" and a Tier 1-4 license are required to create tests from the CLI.
Ensure that the project configuration is ready for handling unit tests.
Ensure that the dependencies to frameworks required for unit testing are configured. See Configuring the Build System to Include Required Libraries and Supported Frameworks.
Before running unit test creation, Jtest performs diagnostics to validate the project and its configuration. See Running Unit Test Creation.
Supported Frameworks
The following frameworks are supported:
- JUnit 4 4.11 or later and JUnit 5
- JUnit4Parametrized
- JUnitParams 1.0.6 or later
- Mockito 1 (1.7 or later), 2 (2.2.11 or later), 3 - 5
- Spring 3.2 or later
- Spring Boot 1.4 or later