Eclipse Library Plugin


This purpose of this plug-in is enable other plug-in within the Eclipse Platform to access the API and to provide a convenient manner to update to the latest release. In addition, Plug-in Developers can now have a reference plug-in for Fit in developing other plug-ins.



Installing the Fit Plugin with the update manager.

  • Open the Install Wizard by clicking Help > Software Updates > Find and Install. This opens the wizard.
  • Select the second button, "Search for new features to install" and click Next.
  • Click on New Remote Site... to add a remote site.
  • .In the Add Site dialog, set the site a name to "Fit Plug-in" and enter the URL http://fitster-eclipse.s ... and click OK..
  • Click on Finish.
  • After adding the site, expand it to the categories of feature versions available at that update site. This will contact the web site to discover what features are available.
  • In the Search Result Page check Fit Plugin and click Next.
  • Carefully review the license agreements for the features. If the terms of all these licenses are acceptable, check "I accept the terms in the license agreements". Do not proceed to download the features if the license terms are not acceptable. After accepting the license then click Next.
  • The Installation page click Finish.
  • In the Feature Verification page click Install.
  • Click Yes when asked to exit and restart the workbench for the changes to take effect.
  • You are now ready to use Fit within Eclipse.

Adding Fit to your project

In order to write Fit test within a Java Project do the following:

  • Select your project in the Package Explorer.
  • Right click and in the context menu select Properties.
  • Select Java Build Path.
  • Click on the Libraries tab if it is not selected.
  • Click on Add External Jar...
  • Find the plugins directory of your Eclispe installation and in it find the fit.plugin_1.1.0 directory where you will find fit.jar. Select fit.jar.
  • Once the jar has been added then click on OK.
  • You are ready to write your own fixtures at this point.

Running a single test

In order to run a test do the following:

  • From within your Java project select the fit.jar.
  • Right Click and and select Run As | Java Application.
  • .In the Run Type dialog select FileRunner by double clicking on it. This will launch Fit and you will see in the console the following message usage: java fit.FileRunner input-file output-file . At this point we have a Run Configuration but we have to set the Arguments for it.
  • From the menu select Run | Run... to bring up the Run page.
  • Select FileRunner if it is not yet selected.
  • Click on the Arguments tab and add your input-file-name and output-file-name in Program Attributes text box.
  • Click Apply and then Click Run.
  • The test will now run.
  • In order to run more tests you select the FileRunner configuration in the right hand pane of the Run page, right click and select Duplicate.
  • Rename the new Configuration and follow steps 6 and 7.

Integrating Fit with other plug-in

In order to integrate Fit into other plug-ins all you have to do is select Add the Fit Plug-in in the Dependencies page of your plug-in.

If the above doesn't work then you might want to try the following technique: ... cp/msg06980.html

Debugging Fit

The source is included in the distribution so that you do not have to attach a source attachment to the jar. This means that you can use F3 to navgate the source, set breakpoint in the debugger, trace the call stack, etc.

Also see: FitEclipse


Last edited February 2, 2006
Return to WelcomeVisitors