Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This setting enables or disables displaying recommendations for files that were created during the test run, but were not removed after execution.

Acceptable Values

trueDisplaying recommendations for files that were created during the test run, but were not removed after execution, is enabled.
falseDefault. Displaying recommendations for files that were created during the test run, but were not removed after execution, is disabled.

jtest.uta.recommendations.mockable.invocations

This setting enables or disables displaying recommendations for calls to mock objects that can be modified to ensure proper test isolation. 

Acceptable Values

trueDefault. Displaying recommendations for calls to mock objects that can be modified to ensure proper test isolation is enabled.
falseDisplaying recommendations for calls to mock objects that can be modified to ensure proper test isolation is disabled.

jtest.uta.recommendations.no.assertions

This setting enables or disables displaying recommendations when no assertions have been made after test execution. 

Acceptable Values

trueDefault. Displaying recommendations when no assertions have been made is enabled.
falseDisplaying recommendations when no assertions have been made is disabled.

jtest.uta.recommendations.properties.changed

This setting enables or disables displaying recommendations for system properties that were modified during the test run, but not restored after execution. 

Acceptable Values

trueDisplaying recommendations for additional threads system properties that were modified during the test run, but not restored after execution is enabled.
falseDefault. Displaying recommendations for  system properties that were modified during the test run, but not restored after execution is disabled.

jtest.uta.recommendations.setup.problems

This setting enables or disables displaying recommendations for root causes of bulk test failures that share a common exception or issue, indicating potential setup problems within the project.  

Acceptable Values

trueDisplaying recommendations for potential setup problems is enabled.
falseDefault. Displaying recommendations for potential setup problems is disabled.

jtest.uta.recommendations.static.fields.changed

This setting enables or disables displaying recommendations when static fields have been modified during test execution. 

Acceptable Values

trueDisplaying recommendations when static fields have been modified during test execution is enabled.
falseDefault. Displaying recommendations when static fields have been modified during test execution is disabled.

jtest.uta.recommendations.static.invocations

This setting enables or disables displaying recommendations for calls to mockable static methods or constructors based on the specified mocking configuration. 

Acceptable Values

trueDisplaying recommendations for calls to mockable static methods or constructors is enabled.
falseDefault. Displaying recommendations for calls to mockable static methods or constructors is disabled.

jtest.uta.recommendations.uncovered.code

...

This setting allows you to specify the package and class name pattern for tests.

Acceptable Values

[pattern]

The package and class name pattern for tests.

The default pattern of "${package_name}.${class_name}${test_kind}Test" will put tests in the same package as the class being tested and add "${test_kind}Test" suffix to the class name. A custom pattern can also be specified using the following variables:

  • Spring - Separates Spring tests from other tests in JUnit 4 and 5.
  • Parameterized - Separates parameterized tests from regular tests in JUnit 4. In JUnit 5, regular and parameterized test cases are added to the same file.

For tests that are not Spring or parameterized tests, the ${test_kind} variable resolves to empty string.

jtest.uta.test.source.folder

This setting allows you to specify the root directory where tests created with UTA are saved.

Acceptable Values

[path]

The path to the directory where tests created with UTA are saved. By default, the project's settings are read to determine where tests should be saved. If the project does not specify where tests are located, then either update your project's configuration so a test source folder is specified, switch to one of the predefined patterns, or create a pattern manually using the following variables:
${project_name} - The name of the project (module for IntelliJ) that includes the tested class.
${source_folder} - The name of the folder that contains the source files of the project.

Example Usage

jtest.uta.test.source.folder=${project_name}/tests

...