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

Orion/How Tos/How To Run Releng JUnits

< Orion‎ | How Tos
Revision as of 15:06, 1 April 2011 by Unnamed Poltroon (Talk) (Runnning releng tests locally)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Orion build runs JUnit server tests during the releng build. Sometimes these tests fail and it is hard to reproduce the failures locally in your Eclipse workspace due to setup differences.

This page outlines how to download and re-run the last build's junit tests locally with the same scripts that ran the tests during the build.

See the "Getting the Source" page for details on getting the Orion source into your Eclipse workspace. In particular, you need the org.eclipse.orion.releng project. This project contains a launch configuration named "Run Orion Releng Tests".

Orion Releng JUnitLaunchConfig.png

  • -DbuildType=N : The build type should be set to either "N" or "I" to test the last nightly or integration build.
  • -DrunTestsLocally=true : This same script is used to build and run the tests for real in the releng build, this property tells the script that we just want to download and re-run the last build's tests.

Running this launch config will download the latest build and test bundles and run them. This will be testing the results of the releng build, not the content of your workspace. By default, a folder org.eclipse.orion.releng/build/test will be created to contain the tests. The Orion server from the last build will be installed here and run. To change the location where the server and tests will be installed, add a path to the launch config using:

-DbuildDirectory=C:/test/path/orionReleng

To test an earlier build instead of the most recent, add the following with an appropriate build Id:

-DorionRepo=http://download.eclipse.org/e4/updates/orion/0.2-N-builds/N20110331-2000

The results of the junit tests will appear under org.eclipse.orion.releng/build/test/eclipse/results. The resulting xml files can be opened and viewed using the JUnit view.

Orion Releng localTestsResults.png

Back to the top