Author: dgolovin
Date: 2011-08-15 19:48:41 -0400 (Mon, 15 Aug 2011)
New Revision: 33948
Added:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/requirements.properties
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml
Log:
https://issues.jboss.org/browse/JBIDE-9461 test failures in org.jboss.tools.cdi.bot.test
configured CDI SWT Bot Tests to run from maven for CDI Version from nightly composite
update site. This approachg should work considering that component build first builds and
publishes result to composite nightly update site.
to run locally
svn co
https://svn.jboss.org/repos/jbosstools/trunk/build/
svn co
https://svn.jboss.org/repos/jbosstools/trunk/requirements
svn co
https://svn.jboss.org/repos/jbosstools/trunk/cdi
cd cdi/tests/org.jboss.tools.cdi.bot.test
mvn clean integration-test -Pjbosstools-nightly-staging-composite
-Djboss.tools.jre.6=/usr/lib/jvm/java-6-openjdk
to run on hudson build should inject jboss.tools.jre.6 through maven properties
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.bot.test
___________________________________________________________________
Modified: svn:ignore
- target
buildlog.latest.txt
bin
build
+ target
buildlog.latest.txt
bin
build
screenshots
swtbot.properties
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml 2011-08-15 23:38:14 UTC (rev
33947)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml 2011-08-15 23:48:41 UTC (rev
33948)
@@ -9,5 +9,63 @@
<groupId>org.jboss.tools.cdi.tests</groupId>
<artifactId>org.jboss.tools.cdi.bot.test</artifactId>
- <packaging>eclipse-plugin</packaging>
+ <packaging>eclipse-test-plugin</packaging>
+ <properties>
+ <systemProperties>-Dswtbot.test.properties.file=./swtbot.properties</systemProperties>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <configuration>
+ <useUIThread>false</useUIThread>
+ <skip>${swtbot.test.skip}</skip>
+ <dependencies>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.jst.server_ui.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.ide.eclipse.as.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.cdi.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.richfaces.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ </dependencies>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>${maven.antrun.plugin.version}</version>
+ <executions>
+ <execution>
+ <id>default-swtbot-config</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <echo file="swtbot.properties"
append="false">SERVER=JBOSS_AS,6.0,default,${requirement.build.root}/jboss-6.0.0.Final
+JAVA=1.6,${jboss.tools.jre.6}
+ </echo>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/requirements.properties
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/requirements.properties
(rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/requirements.properties 2011-08-15
23:48:41 UTC (rev 33948)
@@ -0,0 +1 @@
+requirements=jbossas-6.0.0.Final
\ No newline at end of file
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/requirements.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain