Chapter 5. Contributing a Menu Item to Run Tests
What we'll see in this chapter:
Contributing an action that shows up in the context menu of a selected object
Implementing the contribution by looking at an example
We'd like to get the minimal user interface possible for our example, just to have something complete running. Here is where we will start:
Choose a test case class in the Package Explorer.
Pop-up a context menu.
Select Run Test.
Run the tests.
Pop up a dialog with the results of running all the tests in the type.
Create a new plug-in project named
org.eclipse.contribution.junit. Use the default plug-in structure, but uncheck the Generate code for the class button on the final page. You will have to delete the line