Configuring JUnit

See Also 

The IDE enables you to customize the process of test generation in the Options window or as you create tests. You can also edit the list of sources the IDE references when compiling tests.

To edit JUnit settings in the Options window:

  1. Choose Tools > Options from the main window.
  2. Click Advanced Options.
  3. Expand the Testing node and select JUnit Tests.
  4. Adjust the the property settings as desired and click Close.

The IDE updates settings regarding which classes and methods are included in generated tests, and whether or not comments are included.

To edit JUnit settings as you create tests:

  1. Right-click the sources for which you wish to create tests.
  2. Choose Tools > Create JUnit Tests (Ctrl-Shift-U).
  3. In the Create Tests dialog box, select the Code Generation options you require for the tests.

The IDE creates the tests with the specified options.

To edit the classpath for compiling or running tests:

  1. Right-click the project's Test Libraries node and choose one of the following:
  2. Click OK.

    The IDE adjusts and stores the classpath priorities based on the new settings.

See Also
Creating a JUnit Test
Managing the Classpath

Legal Notices