Creating and updating JUnit test suites
To create a new test suite:
- Select a package in which you have tests for which you want to create a
test suite.
- Open the new wizard dialog by doing one of the following:
- pressing Ctrl+N or
- selecting File > New > Other from the menu bar or
- pressing the Open the New Wizard toolbar button
- Select Java > Junit from the left pane and TestSuite from
the right pane
- Press Next
- In the Source folder field, enter the name of the source folder in
which the test suite will be created.
- In the Package field, enter the name of the package (empty name denotes
the default package) in which the test suite will be created.
- In the Test suite field, enter the name of the test suite class.
- In the presented list of classes, select the test classes for which you
want to create the test suite.
- Press Finish.
You can add new test classes (or remove some) to the created suite:
- Either manually or
- By re-running the wizard and selecting the new set of test classes.
Note: the wizard puts 2 special markers (//$JUnit-BEGIN$
and //$JUnit-END$
) into the created Test suite class, which allows
the wizard to update existing test suite classes. It is recommended not to
edit code that lies between the markers.

Using JUnit
JUnit preference page