Mickael,

sounds really good :), so I gave it a try and found out:

1. Not all our test plug-ins are ready to be used with this feature due to forgetting include test projects into binary build; so far I've found o.j.t.tests.test and o.j.t.foundation.core.test have such problem; I couldn't go further than foundation.core.test plug-in because of problems explained below

2. Second try to run usually ends up with

[INFO] Installing IUs [org.jboss.tools.foundation.core.test, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4] to /home/eskimo/jbdevstudio-java-with-space/studio
Installing org.jboss.tools.foundation.core.test 1.1.0.Alpha1-v20131109-0206.
Installing org.eclipse.tycho.surefire.osgibooter 0.19.0.
Installing org.eclipse.tycho.surefire.junit4 0.19.0.
Installation failed.
Cannot complete the install because of a conflicting dependency.
 Software being installed: JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0206 (org.jboss.tools.foundation.core.test 1.1.0.Alpha1-v20131109-0206)
 Software currently installed: JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0203 (org.jboss.tools.foundation.core.test 1.1.0.Alpha1-v20131109-0203)
 Only one of the following can be installed at once:
  JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0203 (org.jboss.tools.foundation.core.test 1.1.0.Alpha1-v20131109-0203)
  JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0206 (org.jboss.tools.foundation.core.test 1.1.0.Alpha1-v20131109-0206)
Application failed, log file location: /tmp/config3255596288906066066equinox/1383962733126.log
[INFO] ------------------------------------------------------------------------

3. Also I've seen problems with shutting down the RCP installation:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jboss.tools.foundation.core.test.FoundationAllTests
Accepting connections
Accepting socket
Generating response
Response requested. Delaying
Responding to request: Hello
Response generated
Accepting connections
Accepting socket
Cancel Monitor Thread Launched
Generating response
Response requested. Delaying
Canceling Monitor
Responding to request: Hello
Response generated
Flushing response
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.037 sec

Results :

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0

Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.decorators.DecorationScheduler$3
Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.decorators.DecorationScheduler$1
Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.AnimationManager$1
An error has occurred. See the log file
/home/eskimo/Projects/jbdevstudio/src-fork/jbosstools-base/foundation/tests/org.jboss.tools.foundation.core.test/target/work/data/.metadata/.log.


Denis

On 11/08/2013 07:04 AM, Mickael Istria wrote:
Hi all,

With Tycho 0.19.0, we could fix the long-standing issue JBIDE-13869. This will allow you to run your test with Maven against an RCP application which is available in your filesystem.
You can do it by simply running for example:
  $ cd tests/my.test.bundle
  $ mvn clean verify -Dtest.profileName=epp.package.jee -Dtest.installPath=/home/me/eclipse-4.4.M2
If test.installPath is not set, you get the default surefire behaviour which is to generate a simple minimal installation to run the tests in target/work.
More info about the profileName can be found in http://wiki.eclipse.org/Tycho/Testing_with_Surefire#p2Installed_on_provisioned_RCP_application . This works on any RCP application that relies on p2 (in case you want to test JBoss Tools inside Websphere Studio ;).

We've configured it so that by default, it is JBDS-friendly and set the jbds profileName. So to test on JBDS, you can simply use:
  $ mvn clean verify -Dtest.installPath=/home/me/jbdevstudio-8.0.0.Alpha1-SNAPSHOT/studio

Except a few exception, other surefire parameters, such as the very cool debugPort parameter, can be used together with this mechanism.

Enjoy!
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets


_______________________________________________
jbosstools-dev mailing list
jbosstools-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosstools-dev