Testing plug-ins with JUnit

This document is principally concerned with the JUnit Plug-in test process. As such, the document assumes that the reader is familiar with Eclipse plug-in development. If not, reference should be made to the Eclipse online Help Guides, Platform Plug-in Developer Guide and JDT Plug-in Developer Guide.

Where we do make specific reference to Eclipse plug-in development facilities or concepts, this is with a view to providing the reader with a context within which they can relate to the JUnit Plug-in test process.

Overview

We are going to illustrate the JUnit Plug-in test process by working through a simple example step-by-step.

There are various stages involved:

  1. Create and configure a plug-in project

    For this example, we create and configure a plug-in project named pluginProject.


  2. Creating a JUnit Plug-in test

    Create the test that will be used to test the plug-in.


  3. Creating a workbench location

    A workbench location is used to specify where a TPTP JUnit Plug-in test will run.


  4. Creating a deployment

    This section describes how to create a deployment for your test suite. The examples are set within the context of the Test perspective.


  5. Running a test

    There are a number of options available to run a test.


  6. Generating test reports

    After you have run your tests and generated execution histories, you can generate a report on those test results to summarize the data.


Related concepts
JUnit Plug-in Test Suite Editor

Workbench location editor