Creating a JUnit plug-in test
Create the test that will be used to test the plug-in.
-
Select File > New > Other > Test > TPTP JUnit Plug-in Test.
If you see the New Test Case dialog asking you if you want to add some libraries on the build path,
click Yes.
-
Click Next.
- In the Source folder entry field type pluginProj/src.
- In the Package entry field type tests.
- In the Name entry field type EclipseUiTest.
-
Select either 'In the test editor' or 'In the code editor' for the test behavior option.
See JUnit Test Suite Editor for a detailed explanation of these options.
-
Click Next and provide the test's name and location.
- Click Next and provide a description if required. Click Finish.
You now have a JUnit plug-in project test named EclipseUiTest.
Related concepts
JUnit Test Suite Editor