Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "E4/Compatibility/Testing"
< E4 | Compatibility
Line 6: | Line 6: | ||
#Checkout the <code>org.eclipse.e4.ui.releng</code> module from the <code>/cvsroot/eclipse</code>'s <code>e4/releng</code> directory. | #Checkout the <code>org.eclipse.e4.ui.releng</code> module from the <code>/cvsroot/eclipse</code>'s <code>e4/releng</code> directory. | ||
#Right-click on the <code>e4.ui.compatibility.psf</code> file and select 'Import project set...'. When you are prompted for a password, just enter <code>anonymous</code> as your user name and leave the password as blank. | #Right-click on the <code>e4.ui.compatibility.psf</code> file and select 'Import project set...'. When you are prompted for a password, just enter <code>anonymous</code> as your user name and leave the password as blank. | ||
− | #Repeat the procedure for <code>e4.ui.psf</code>, <code>e4.ui.css.psf</code>, and <code>e4.ui.tests.compatibility.psf</code>. | + | #Repeat the procedure for <code>e4.ui.psf</code>, <code>e4.ui.css.psf</code>, and <code>e4.ui.tests.compatibility.psf</code>. You '''will''' have errors. |
===Running the tests=== | ===Running the tests=== | ||
Line 16: | Line 16: | ||
#Change the target product to <code>org.eclipse.e4.ide.application.product</code>. | #Change the target product to <code>org.eclipse.e4.ide.application.product</code>. | ||
#Try running the test again. It should work now. | #Try running the test again. It should work now. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 15:35, 26 February 2010
This page describes how to run the 3.x API tests with a workbench that's backed by e4's compatibility layer.
Setup
- Download a recent e4 SDK here.
- Add this CVS repository location to your workspace setup:
:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
- Checkout the
org.eclipse.e4.ui.releng
module from the/cvsroot/eclipse
'se4/releng
directory. - Right-click on the
e4.ui.compatibility.psf
file and select 'Import project set...'. When you are prompted for a password, just enteranonymous
as your user name and leave the password as blank. - Repeat the procedure for
e4.ui.psf
,e4.ui.css.psf
, ande4.ui.tests.compatibility.psf
. You will have errors.
Running the tests
- Select a test from the
org.eclipse.ui.tests
bundle, such asorg.eclipse.ui.tests.api.IWorkbenchPageTest
for example. - If there are compiler errors indicating incorrect imports, try using 'Organize Imports' to get rid of them or to have them point to the e4 variant of the internal.
- Right-click on the file > Run As > JUnit Plug-in Test.
- This will fail. Open the launch configuration dialog.
- Select the launch configuration that was just generated and go to the 'Main' tab.
- Change the target product to
org.eclipse.e4.ide.application.product
. - Try running the test again. It should work now.