|
|
|
Re: Integrate SWTBOT test cases with Jenkins [message #1706094 is a reply to message #1704964] |
Sat, 22 August 2015 12:24  |
|
On 11/08/2015 09:19, Chetana Barhate wrote:
> Hello,
>
> I have added below code to pom.xml:
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>target-platform-configuration</artifactId>
> <version>${tycho-version}</version>
> <configuration>
> <dependency-resolution>
> <extraRequirements>
> <requirement>
> <type>eclipse-plugin</type>
> <id>com.cmp.proj.client.gui.ui</id>
> <versionRange>6.0.0</versionRange>
> </requirement>
> </extraRequirements>
> </dependency-resolution>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-surefire-plugin</artifactId>
> <version>${tycho-version}</version>
> <configuration>
> <useUIHarness>true</useUIHarness>
> <useUIThread>false</useUIThread>
> <application>com.cmp.proj.client.gui.ui.application</application>-->
> <dependencies>
> <dependency>
> <type>eclipse-plugin</type>
> <artifactId>com.cmp.proj.client.gui.ui</artifactId>
> <version>6.0.0</version>
> </dependency> </dependencies>
> </configuration>
> </plugin>
>
> after running the pom.xml in Jenkins the below error is showing:
> [ERROR] Failed to execute goal
> org.eclipse.tycho:tycho-surefire-plugin:0.22.0:test (default-test) on
> project com.cmp.pro.client.gui.swtbot.test: Could not find application
> "com.cmp.proj.client.gui.ui.application" in the test runtime. Make sure
> that the test runtime includes the bundle which defines this application.
>
> Here I am not able to understand the meaning of "test runtime includes
> the bundle which defines this application". What more need to include in
> the pom.xml so that the my application will lunch and test cases will
> executed.
>
> Please help.
Hi
I think that you should only specify the dependency in the
target-platform-configuration not in the tycho-surefire-plugin
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Powered by
FUDForum. Page generated in 36.12309 seconds