platform-vcm-home/docs/online/JUnitTesting.html
Parent Directory
|
Revision Log
Revision 1.1 - (view) (download) (as text)
| 1 : | mvalenta | 1.1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 : | <html> | ||
| 3 : | |||
| 4 : | <head> | ||
| 5 : | <title>Testing Team/CVS with JUnit</title> | ||
| 6 : | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
| 7 : | <link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css"> | ||
| 8 : | </head> | ||
| 9 : | |||
| 10 : | <body bgcolor="#ffffff" text="#000000"> | ||
| 11 : | |||
| 12 : | <table border="0" cellspacing="5" cellpadding="2" width="100%"> | ||
| 13 : | <tbody> | ||
| 14 : | |||
| 15 : | <tr> | ||
| 16 : | <td align="left" valign="top" colspan="2" bgcolor="#0080c0"> | ||
| 17 : | <b><font color="#ffffff" face="Arial,Helvetica"> | ||
| 18 : | Testing Team/CVS with JUnit | ||
| 19 : | </font></b> | ||
| 20 : | </td> | ||
| 21 : | </tr> | ||
| 22 : | |||
| 23 : | |||
| 24 : | <tr> | ||
| 25 : | <td align="right" valign="top" width="2%"><img | ||
| 26 : | src="http://dev.eclipse.org/images/Adarrow.gif" border="0" height="16" | ||
| 27 : | width="16"> | ||
| 28 : | </td> | ||
| 29 : | <td width="98%"> Perform the following steps in order to test the CVS plugin using JUnit | ||
| 30 : | <ol> | ||
| 31 : | <li>If you haven't already done so, prepare a CVS repository that can be used for testing. | ||
| 32 : | </li> | ||
| 33 : | </p> | ||
| 34 : | |||
| 35 : | <li>Before you start Eclipse, | ||
| 36 : | obtain the JUnit PDE launcher from JDT (At the time of writing, this plugin is available | ||
| 37 : | <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-ui-home/plugins/org.eclipse.jdt.junit/index.html">here</a>) | ||
| 38 : | and install it in your Eclipse plugins directory. | ||
| 39 : | </li> | ||
| 40 : | <p/> | ||
| 41 : | |||
| 42 : | <li>Start Eclipse and setup your workspace for self-hosting.</li> | ||
| 43 : | <p/> | ||
| 44 : | |||
| 45 : | <li>Load the following tests plugins from dev.eclipse.org: | ||
| 46 : | <p/> | ||
| 47 : | <ul> | ||
| 48 : | <li>org.eclipse.core.tests.harness</li> | ||
| 49 : | <li>org.eclipse.team.tests.core</li> | ||
| 50 : | <li>org.eclipse.team.tests.cvs.core</li> | ||
| 51 : | </ul> | ||
| 52 : | </li> | ||
| 53 : | <p/> | ||
| 54 : | |||
| 55 : | <li>Edit the org.eclipse.team.tests.cvs.core/repository.properties file to contain the | ||
| 56 : | information required to connect to your test repository. This file can be copied to a directory | ||
| 57 : | outside of the workspace so that the values you enter can be maintained indefinitely. Do not | ||
| 58 : | commit personal connection information to the repository. | ||
| 59 : | </li> | ||
| 60 : | <p/> | ||
| 61 : | |||
| 62 : | <li>Launch the Junit plugin tester by performing the following steps: | ||
| 63 : | <ul> | ||
| 64 : | <li>Select org.eclipse.team.cvs.tests and from the Run menu, choose Run...</li> | ||
| 65 : | <li>In the Run dialog, select "JUnit Plugin Test" and press New</li> | ||
| 66 : | <li>Enter a name for the launch configuration. | ||
| 67 : | <li>Ensure that the project is org.eclipse.team.cvs.tests and press Search to find the | ||
| 68 : | desired test class. Use org.eclipse.team.tests.ccvs.core.provider.AllTestsProvider to run | ||
| 69 : | all the CVS provider tests. | ||
| 70 : | </li> | ||
| 71 : | <li>Change the application name to org.eclipse.pde.junit.coretestapplication</li> | ||
| 72 : | <li>Click on the Arguments tab and enter "-Declipse.cvs.properties=C:\path\to\repository.properties" as the VM | ||
| 73 : | arguments, where "C:\path\to\repository.properties" is the path to the properties file created/edited above. | ||
| 74 : | <li>Click Run. | ||
| 75 : | <p/> | ||
| 76 : | </ul> | ||
| 77 : | <li>You should see a "connected to..." message in the console and shortly after that, | ||
| 78 : | the JUnit view should open and show you the results of each test. | ||
| 79 : | </li> | ||
| 80 : | <p/> | ||
| 81 : | |||
| 82 : | </ul> | ||
| 83 : | </td> | ||
| 84 : | </tr> | ||
| 85 : | |||
| 86 : | |||
| 87 : | </tr> | ||
| 88 : | <tr> | ||
| 89 : | |||
| 90 : | </tbody> | ||
| 91 : | </table> | ||
| 92 : | |||
| 93 : | </body> | ||
| 94 : | </html> |
| help@eclipse.org | ViewVC Help |
| Powered by ViewVC 1.0.3 |
