Bug 429788 - [CBI] Enable JUnit tests for sourceediting.xpath.tests repo Signed-off-by: Thanh Ha <thanh.ha@eclipse.org>
diff --git a/tests/org.eclipse.wst.xml.xpath.core.tests/pom.xml b/tests/org.eclipse.wst.xml.xpath.core.tests/pom.xml index ca67eec..700c112 100644 --- a/tests/org.eclipse.wst.xml.xpath.core.tests/pom.xml +++ b/tests/org.eclipse.wst.xml.xpath.core.tests/pom.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (c) 2012, 2013 Eclipse Foundation and others. + Copyright (c) 2012, 2014 Eclipse Foundation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, and is available at @@ -23,5 +23,10 @@ <groupId>org.eclipse.webtools.sourceediting</groupId> <artifactId>org.eclipse.wst.xml.xpath.core.tests</artifactId> <version>1.1.0-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> + <packaging>eclipse-test-plugin</packaging> + + <properties> + <testSuite>${project.artifactId}</testSuite> + <testClass>org.eclipse.wst.xml.xpath.core.tests.XPathCoreTests</testClass> + </properties> </project>
diff --git a/tests/org.eclipse.wst.xml.xpath.ui.tests/pom.xml b/tests/org.eclipse.wst.xml.xpath.ui.tests/pom.xml index 7aab97e..6b7e517 100644 --- a/tests/org.eclipse.wst.xml.xpath.ui.tests/pom.xml +++ b/tests/org.eclipse.wst.xml.xpath.ui.tests/pom.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (c) 2012, 2013 Eclipse Foundation and others. + Copyright (c) 2012, 2014 Eclipse Foundation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, and is available at @@ -23,5 +23,5 @@ <groupId>org.eclipse.webtools.sourceediting</groupId> <artifactId>org.eclipse.wst.xml.xpath.ui.tests</artifactId> <version>1.0.100-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> + <packaging>eclipse-test-plugin</packaging> </project>
diff --git a/tests/org.eclipse.wst.xml.xpath2.processor.tests/pom.xml b/tests/org.eclipse.wst.xml.xpath2.processor.tests/pom.xml index d0d8234..7679db3 100644 --- a/tests/org.eclipse.wst.xml.xpath2.processor.tests/pom.xml +++ b/tests/org.eclipse.wst.xml.xpath2.processor.tests/pom.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (c) 2010, 2013 Eclipse Foundation and others. + Copyright (c) 2010, 2014 Eclipse Foundation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, and is available at @@ -25,7 +25,7 @@ <groupId>org.eclipse.webtools.sourceediting</groupId> <artifactId>org.eclipse.wst.xml.xpath2.processor.tests</artifactId> <version>2.1.1-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> + <packaging>eclipse-test-plugin</packaging> <name>PsychoPath XPath 2.0 Processor: Tests</name> <build> @@ -35,7 +35,9 @@ <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho.version}</version> <configuration> - <testSuite>org.eclipse.wst.xml.xpath2.processor.tests</testSuite> + <useUIHarness>true</useUIHarness> + <useUIThread>true</useUIThread> + <testSuite>${project.artifactId}</testSuite> <testClass>org.eclipse.wst.xml.xpath2.processor.test.AllPsychoPathTests</testClass> </configuration> </plugin>
diff --git a/tests/org.eclipse.wst.xml.xpath2.wtptypes.tests/pom.xml b/tests/org.eclipse.wst.xml.xpath2.wtptypes.tests/pom.xml index 37998dc..6899315 100644 --- a/tests/org.eclipse.wst.xml.xpath2.wtptypes.tests/pom.xml +++ b/tests/org.eclipse.wst.xml.xpath2.wtptypes.tests/pom.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (c) 2011, 2013 Eclipse Foundation and others. + Copyright (c) 2011, 2014 Eclipse Foundation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, and is available at @@ -24,7 +24,7 @@ <groupId>org.eclipse.webtools.sourceediting</groupId> <artifactId>org.eclipse.wst.xml.xpath2.wtptypes.tests</artifactId> <version>2.0.0-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> + <packaging>eclipse-test-plugin</packaging> <name>PsychoPath XPath 2.0 Processor: Tests for WTP type support</name> <build> @@ -34,7 +34,7 @@ <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho.version}</version> <configuration> - <testSuite>org.eclipse.wst.xml.xpath2.wtptypes.tests</testSuite> + <testSuite>${project.artifactId}</testSuite> <testClass>org.eclipse.wst.xml.xpath2.wtptypes.test.AllXPath2TestsForWTP</testClass> </configuration> </plugin>