|
|
Re: Headless Test with Maven/Tycho [message #1739008 is a reply to message #1738946] |
Tue, 26 July 2016 18:28   |
Vivek Veera Messages: 18 Registered: July 2015 |
Junior Member |
|
|
Thank you Lorenzo for the response.
Yes, all my Tests are named as XXXTest.java and placed them under src/test/java inside my Test plugin. I have mentioned packaging type for test plugin as 'eclipse-test-plugin'
I tried running build with 'mvn clean test' command initially but Tests are not run with this and build completes with SUCCESS.
I think Tycho surefire plugin executes tests in 'integration-test' phase therefore it does not pick SWTBot tests in 'test' phase. But I get below dependency error when I use 'mvn clean integration-test' or 'mvn clean verify' commands. I doubt if this is the correct command to use for executing my SWTBot tests using Tycho surefire plugin.
I need some help in getting the correct configuration and maven build commands for running my SWTBot tests using Tycho surefire plugin.
Here is the error it throws for my test plugin (com.foo.bar.tests)
[INFO] --- tycho-surefire-plugin:0.24.0:test (default-test) @ com.foo.bar.tests ---
[INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install 'bundle org.eclipse.ui.ide.application 0.0.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Thanks.
Vivek
[Updated on: Tue, 26 July 2016 18:30] Report message to a moderator
|
|
|
Re: Headless Test with Maven/Tycho [message #1739267 is a reply to message #1739008] |
Fri, 29 July 2016 08:28   |
|
On 26/07/2016 20:28, Vivek Veera wrote:
> Thank you Lorenzo for the response.
Hi
comments inline
>
> Yes, all my Tests are named as XXXTest.java and placed them under
> src/test/java inside my Test plugin. I have mentioned packaging type for
> test plugin as 'eclipse-test-plugin'
>
> I tried running build with 'mvn clean test' command initially but Tests
> are not run with this and build completes with SUCCESS.
>
> I think Tycho surefire plugin executes tests in 'integration-test' phase
> therefore it does not pick SWTBot tests in 'test' phase. But I get
that's right: you need to run
mvn clean verify
> below dependency error when I use 'mvn clean integration-test' or 'mvn
> clean verify' commands. I doubt if this is the correct command to use
> for executing my SWTBot tests using Tycho surefire plugin.
>
> I need some help in getting the correct configuration and maven build
> commands for running my SWTBot tests using Tycho surefire plugin.
>
> Here is the error it throws for my test plugin (com.foo.bar.tests)
well you need that in your target platform.
Are you using a target platform in your eclipse workspace?
cheers
Lorenzo
>
> [INFO] --- tycho-surefire-plugin:0.24.0:test (default-test) @
> com.foo.bar.tests ---
> [INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86,
> org.eclipse.update.install.features=true}
> [ERROR] Cannot resolve project dependencies:
> [ERROR] You requested to install 'bundle
> org.eclipse.ui.ide.application 0.0.0' but it could not be found
> [ERROR]
> [ERROR] See
> http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for
> help.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
>
>
--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
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 0.02281 seconds