Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2010-04-14 23:33:06 +0000
committerMatthias Sohn2010-04-26 21:03:24 +0000
commitda053e043f3224c714774746f1f3aa9f639e3fe1 (patch)
treecd91285a177ec783f043a1a611e5e830f731db24 /org.eclipse.egit.ui.test/pom.xml
parentebbaf062ba76916d2de47b91f5e12a68a2ad3a5f (diff)
downloadegit-da053e043f3224c714774746f1f3aa9f639e3fe1.tar.gz
egit-da053e043f3224c714774746f1f3aa9f639e3fe1.tar.xz
egit-da053e043f3224c714774746f1f3aa9f639e3fe1.zip
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 Make GitCloneWizardTest.canCloneARemoteRepo() independent from Eclipse workspace name. This eliminates the need to configure the workspace used by the test run from Tycho. Introduce maven property "ui.test.vmargs" to enable passing VM parameters to the VM running the tests. 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 The following platform versions are supported: - ganymede - galileo - helios The tests are executed in the integration-test phase of the default Maven lifecycle [2]. Since the feature org.eclipse.sdk.ide is not available in the ganymede p2 repository the feature org.eclipse.pde.feature.group is used to setup the test harness. [1] https://docs.sonatype.org/display/TYCHO/How+to+run+SWTBot+tests+with+Tycho [2] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Change-Id: I06e94589589ad18b50daf641d89fd65a8c46f694 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/pom.xml')
-rw-r--r--org.eclipse.egit.ui.test/pom.xml86
1 files changed, 86 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/pom.xml b/org.eclipse.egit.ui.test/pom.xml
new file mode 100644
index 0000000000..6bfc5e6aaf
--- /dev/null
+++ b/org.eclipse.egit.ui.test/pom.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2010, Matthias Sohn <matthias.sohn@sap.com>
+
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.egit</groupId>
+ <artifactId>egit-parent</artifactId>
+ <version>0.8.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.eclipse.egit.ui.test</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+
+ <name>EGit UI Test Plug-in (Incubation)</name>
+
+ <properties>
+ <local-egit-site>file:/${basedir}/../org.eclipse.egit-updatesite/target/site</local-egit-site>
+ <ui.test.vmargs></ui.test.vmargs>
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>local-egit</id>
+ <layout>p2</layout>
+ <url>${local-egit-site}</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jgit</groupId>
+ <artifactId>org.eclipse.jgit</artifactId>
+ <version>${jgit-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jgit</groupId>
+ <artifactId>org.eclipse.jgit.junit</artifactId>
+ <version>${jgit-version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>maven-osgi-test-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <useUIHarness>true</useUIHarness>
+ <useUIThread>false</useUIThread>
+ <product>org.eclipse.sdk.ide</product>
+ <argLine>${ui.test.vmargs}</argLine>
+ <application>org.eclipse.ui.ide.workbench</application>
+ <dependencies>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.pde.feature.group</artifactId>
+ <version>${platform-version}</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.egit.feature.group</artifactId>
+ <version>[0.8.0,0.9.0)</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.jgit.feature.group</artifactId>
+ <version>[0.8.0,0.9.0)</version>
+ </dependency>
+ </dependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>

Back to the top