Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Swordfish Documentation: Running IDE Integration Tests"

(Running IDE Integration Tests)
 
(Running Integration tests inside the IDE)
Line 2: Line 2:
 
This section contains instructions on setting configuring the Swordfish Target Platform and run configurations for running / debugging integration tests inside the Eclipse IDE.<br/>
 
This section contains instructions on setting configuring the Swordfish Target Platform and run configurations for running / debugging integration tests inside the Eclipse IDE.<br/>
 
For basic information configuring the Swordfish Target Platform, see [[Swordfish_Documentation:_Running_Target_Platform|Running Target Platform]].
 
For basic information configuring the Swordfish Target Platform, see [[Swordfish_Documentation:_Running_Target_Platform|Running Target Platform]].
 +
 +
=Prerequisites=
 +
* Eclipse Galileo RC4 or newer
 +
* JDK 1.6.* as run time for tests (due to run time requirements in some Eclipse bundles) must be configured as available JRE (JDK 1.5 may still be the default)
 +
 +
=Preparing target platform for testing=
 +
<ol>
 +
<li>Please refer to the basic configuration of the target platform as shown in [[Swordfish_Documentation:_Running_Target_Platform|Running Target Platform]].</li>
 +
<li>Go to the platform location of the target platform and enable all bundles in this location.</li>
 +
<li>Press "Add..." and create an "Installation" that points to ${eclipse_home}</li>
 +
<li>Press "Finish" to save your target platform configuration and make sure it is selected as active platform.</li>
 +
</ol>
 +
 +
=Creating a run configuration=
 +
<ol>
 +
<li>Create a new run configuration for your integration test class.</li>
 +
<li>Test tab: select JUnit4 as test runner.</li>
 +
<li>Main tab:
 +
<ul><li>Check to clear the logs stored in the workspace.</li>
 +
<li>Select &quot;Run an application&quot; and choose &quot;No application - Headless mode&quot;</li>
 +
<li>Select &quot;Runtime JRE&quot; and choose &quot;JVM 1.6.0&quot;</li></ul>
 +
</li>
 +
<li>Arguments tab: Should contain the configuration as defined in the target platform (On creation of a run configuration Eclipse copies the entries from the target platform)</li>
 +
<li>Plug-ins tab: For &quot;Launch with&quot; select &quot;All workspace and enabled target plug-ins&quot;</li>
 +
</ol>

Revision as of 05:44, 9 June 2009

Running Integration tests inside the IDE

This section contains instructions on setting configuring the Swordfish Target Platform and run configurations for running / debugging integration tests inside the Eclipse IDE.
For basic information configuring the Swordfish Target Platform, see Running Target Platform.

Prerequisites

  • Eclipse Galileo RC4 or newer
  • JDK 1.6.* as run time for tests (due to run time requirements in some Eclipse bundles) must be configured as available JRE (JDK 1.5 may still be the default)

Preparing target platform for testing

  1. Please refer to the basic configuration of the target platform as shown in Running Target Platform.
  2. Go to the platform location of the target platform and enable all bundles in this location.
  3. Press "Add..." and create an "Installation" that points to ${eclipse_home}
  4. Press "Finish" to save your target platform configuration and make sure it is selected as active platform.

Creating a run configuration

  1. Create a new run configuration for your integration test class.
  2. Test tab: select JUnit4 as test runner.
  3. Main tab:
    • Check to clear the logs stored in the workspace.
    • Select "Run an application" and choose "No application - Headless mode"
    • Select "Runtime JRE" and choose "JVM 1.6.0"
  4. Arguments tab: Should contain the configuration as defined in the target platform (On creation of a run configuration Eclipse copies the entries from the target platform)
  5. Plug-ins tab: For "Launch with" select "All workspace and enabled target plug-ins"

Back to the top