Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2012-05-15 16:06:08 +0000
committerMatthias Sohn2012-05-15 16:06:57 +0000
commit0c46000ed5f1fb77bbe0a876cda458b18a11b758 (patch)
tree7a0c80ba154382b4cf5c880d93482fa899fb0273
parent1ba16d841200d98c0bcc5cfb541bf01ffeda0001 (diff)
downloadegit-0c46000ed5f1fb77bbe0a876cda458b18a11b758.tar.gz
egit-0c46000ed5f1fb77bbe0a876cda458b18a11b758.tar.xz
egit-0c46000ed5f1fb77bbe0a876cda458b18a11b758.zip
Do not run tests using maven-surefire-plugin in OSGi environment
Running plain junit tests in an OSGi environment using maven-surefire-plugin isn't guaranteed to work as split packages can lead to signing errors when the maven-surefire-plugin loads classes not respecting OSGi class loading rules. Hence run the few plain junit tests as part of the swtbot tests which are run on top of Eclipse platform's OSGi runtime. Change-Id: Ib94f947e639d149d57b676d50a1302ea5517bb78 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui.test/pom.xml32
1 files changed, 4 insertions, 28 deletions
diff --git a/org.eclipse.egit.ui.test/pom.xml b/org.eclipse.egit.ui.test/pom.xml
index 81159cf11d..c2c4808ed2 100644
--- a/org.eclipse.egit.ui.test/pom.xml
+++ b/org.eclipse.egit.ui.test/pom.xml
@@ -73,8 +73,10 @@
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
- <testSuite>org.eclipse.egit.ui.test</testSuite>
- <testClass>org.eclipse.egit.ui.test.AllSWTAndNonSWTTests</testClass>
+ <includes>
+ <include>**/AllJUnitTests.java</include>
+ <include>**/AllSWTAndNonSWTTests.java</include>
+ </includes>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<product>org.eclipse.sdk.ide</product>
@@ -106,32 +108,6 @@
</dependencies>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.7.2</version>
- <executions>
- <execution>
- <phase>test</phase>
- <configuration>
- <testClassesDirectory>${project.build.outputDirectory}</testClassesDirectory>
- <includes>
- <include>**/AllJUnitTests.java</include>
- </includes>
- </configuration>
- <goals>
- <goal>test</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
</project>

Back to the top