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:
- Choose Tools > Options from the main window.
- Click Advanced Options.
- Expand the Testing node and select JUnit Tests.
- 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:
- Right-click the sources for which you wish to create tests.
- Choose Tools > Create JUnit Tests (Ctrl-Shift-U).
- 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.
- All JUnit settings remain in effect until you change them in JUnit Tests
settings (in the Options window) or the Create Tests dialog box.
To edit the classpath for compiling or running tests:
- Right-click the project's Test Libraries node and choose one of the following:
- Add Project.
The build output, source files, and Javadoc files of another IDE project.
- Add Library. A collection
of binary files, source files, and Javadoc files.
- Add JAR/Folder. A JAR file or folder somewhere on your system.
- 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