DESCRIPTION

Tycho build for org.eclipse.egit.ui.test

Following approach described in [1].

Fixed dependencies:
- correcting wrong version range for org.eclipse.core.filesystem
- org.eclipse.ui and org.hamcrest need to be referenced via require-bundle

Also introduce maven property "platform-version-name" to simplify building
against different Eclipse platform releases. E.g. to build and test
against helios platform release run

mvn -Dplatform-version-name=helios clean install

[1] https://docs.sonatype.org/display/TYCHO/How+to+run+SWTBot+tests+with+Tycho

Change-Id: I06e94589589ad18b50daf641d89fd65a8c46f694
Signed-off-by: Douglas Trujillo xxx@xxx.xxx


COMMENTS

author: Douglas Trujillo
date: 2010-04-16 18:50:18.000000000

Uploaded patch set 6.

-------------------------------------
author: Douglas Trujillo
date: 2010-04-16 19:21:50.000000000

Patch Set 6: No score; IP review completed

I missed to add the local p2 repository for the egit version under test. Now the tests run against Ganymede, Galileo and Helios.

I still face test failures (always the same when running tests from maven) :

Ganymede and Galileo Results :

Failed tests:
  canCloneARemoteRepo(org.eclipse.egit.ui.wizards.clone.GitCloneWizardTest)

Tests in error:
  clonedRepositoryShouldExistOnFileSystem(org.eclipse.egit.ui.wizards.clone.GitCloneWizardTest)

Tests run: 5, Failures: 1, Errors: 1, Skipped: 0


Helios Results :

Failed tests:
  canCloneARemoteRepo(org.eclipse.egit.ui.wizards.clone.GitCloneWizardTest)

Tests in error:
  updatesParameterFieldsInImportDialogWhenURIIsUpdated(org.eclipse.egit.ui.wizards.clone.GitCloneWizardTest)
  clonedRepositoryShouldExistOnFileSystem(org.eclipse.egit.ui.wizards.clone.GitCloneWizardTest)

Tests run: 5, Failures: 1, Errors: 2, Skipped: 0


When running test from Helios inside Eclipse IDE in most of the cases I don't get any failures. But sometimes I see a popup with the message:

"Wizard cannot be closed due to an active operation. You must cancel the operation before you can close the wizard."

Maybe this rings some bells for somebody ?

-------------------------------------
author: Juliet Cantu
date: 2010-04-16 21:51:03.000000000

Patch Set 6: No score; No score

I get this:
[ERROR] Failed to execute goal org.sonatype.tycho:maven-osgi-compiler-plugin:0.8.0:compile (default-compile) on project org.eclipse.egit.ui.test: Compilation failure: Compilation failure:
/home/me/SW/egitcontrib/egit/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java (at line 1):[-1,-1]
        /*******************************************************************************
        ^
The type org.junit.internal.runners.TestClassRunner cannot be resolved. It is indirectly referenced from required .class files

/home/me/SW/egitcontrib/egit/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/GitCloneWizardTest.java (at line 34):[-1,-1]
       xxx@xxx.xxx
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Type mismatch: cannot convert from Class<SWTBotJunit4ClassRunner> to Class<? extends Runner>
-> [Help 1]

-------------------------------------
