platform-vcm-home/docs/online/JUnitTesting.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Mon Jan 13 19:37:08 2003 UTC (6 years, 10 months ago) by mvalenta
Branch: MAIN
CVS Tags: HEAD
*** empty log message ***
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
  <title>Testing Team/CVS with JUnit</title>    
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css">
</head>

<body bgcolor="#ffffff" text="#000000">
    
<table border="0" cellspacing="5" cellpadding="2" width="100%">
  <tbody>

  <tr>
    <td align="left" valign="top" colspan="2" bgcolor="#0080c0">
    <b><font color="#ffffff" face="Arial,Helvetica">
        Testing Team/CVS with JUnit
    </font></b>
    </td>
  </tr>
  
  
     <tr>
       <td align="right" valign="top" width="2%"><img
 src="http://dev.eclipse.org/images/Adarrow.gif" border="0" height="16"
 width="16">
       </td>
      <td width="98%"> Perform the following steps in order to test the CVS plugin using JUnit             
      <ol>
          <li>If you haven't already done so, prepare a CVS repository that can be used for testing.
          </li>
          </p>
          
          <li>Before you start Eclipse,
          obtain the JUnit PDE launcher from JDT (At the time of writing, this plugin is available 
          <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-ui-home/plugins/org.eclipse.jdt.junit/index.html">here</a>)
          and install it in your Eclipse plugins directory.
          </li>
          <p/>
          
          <li>Start Eclipse and setup your workspace for self-hosting.</li>
          <p/>
          
          <li>Load the following tests plugins from dev.eclipse.org:
          <p/>
          <ul>
          <li>org.eclipse.core.tests.harness</li>
          <li>org.eclipse.team.tests.core</li>
          <li>org.eclipse.team.tests.cvs.core</li>
          </ul>
          </li>
          <p/>
          
          <li>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.
          </li>
          <p/>
          
          <li>Launch the Junit plugin tester by performing the following steps:
		  <ul>
          <li>Select org.eclipse.team.cvs.tests and from the Run menu, choose Run...</li>
          <li>In the Run dialog, select "JUnit Plugin Test" and press New</li>
          <li>Enter a name for the launch configuration.
          <li>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.
          </li>
          <li>Change the application name to org.eclipse.pde.junit.coretestapplication</li>
          <li>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.
          <li>Click Run.
          <p/>
          </ul>
          <li>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.
          </li>
          <p/>
               
      </ul>
      </td>
    </tr>
     
 
  </tr>
  <tr>
       
  </tbody> 
</table>

</body>
</html>