|
Perform the following steps in order to test the CVS plugin using JUnit
- If you haven't already done so, prepare a CVS repository that can be used for testing.
- Before you start Eclipse,
obtain the JUnit PDE launcher from JDT (At the time of writing, this plugin is available
here)
and install it in your Eclipse plugins directory.
- Start Eclipse and setup your workspace for self-hosting.
- Load the following tests plugins from dev.eclipse.org:
- org.eclipse.core.tests.harness
- org.eclipse.team.tests.core
- org.eclipse.team.tests.cvs.core
- Edit the org.eclipse.team.tests.cvs.core/repository.properties file to contain the
information required to connect to your test repository. This file can be copied to a directory
outside of the workspace so that the values you enter can be maintained indefinitely. Do not
commit personal connection information to the repository.
- Launch the Junit plugin tester by performing the following steps:
- Select org.eclipse.team.cvs.tests and from the Run menu, choose Run...
- In the Run dialog, select "JUnit Plugin Test" and press New
- Enter a name for the launch configuration.
- Ensure that the project is org.eclipse.team.cvs.tests and press Search to find the
desired test class. Use org.eclipse.team.tests.ccvs.core.provider.AllTestsProvider to run
all the CVS provider tests.
- Change the application name to org.eclipse.pde.junit.coretestapplication
- Click on the Arguments tab and enter "-Declipse.cvs.properties=C:\path\to\repository.properties" as the VM
arguments, where "C:\path\to\repository.properties" is the path to the properties file created/edited above.
- Click Run.
- You should see a "connected to..." message in the console and shortly after that,
the JUnit view should open and show you the results of each test.
|