<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/13/2013 12:32 AM, Mickael Istria
wrote:<br>
</div>
<blockquote cite="mid:52833932.5010808@redhat.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 11/13/2013 09:25 AM, Denis Golovin
wrote:<br>
</div>
<blockquote cite="mid:52833763.2010405@exadel.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><br>
</div>
It is build.properties problems when not all resources from test
plug-in are included into bundle jar. Should be fixed.<br>
</blockquote>
Cool.<br>
<br>
<blockquote cite="mid:52833763.2010405@exadel.com" type="cite">
<blockquote cite="mid:5281E8B4.5020806@redhat.com" type="cite">
<blockquote cite="mid:527D9B44.5080401@exadel.com" type="cite">
<div class="moz-cite-prefix"> <br>
2. Second try to run usually ends up with<br>
<br>
[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<br>
Installing org.jboss.tools.foundation.core.test
1.1.0.Alpha1-v20131109-0206.<br>
Installing org.eclipse.tycho.surefire.osgibooter 0.19.0.<br>
Installing org.eclipse.tycho.surefire.junit4 0.19.0.<br>
Installation failed.<br>
Cannot complete the install because of a conflicting
dependency.<br>
Software being installed: JBoss Foundation Tests
1.1.0.Alpha1-v20131109-0206
(org.jboss.tools.foundation.core.test
1.1.0.Alpha1-v20131109-0206)<br>
Software currently installed: JBoss Foundation Tests
1.1.0.Alpha1-v20131109-0203
(org.jboss.tools.foundation.core.test
1.1.0.Alpha1-v20131109-0203)<br>
Only one of the following can be installed at once: <br>
JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0203
(org.jboss.tools.foundation.core.test
1.1.0.Alpha1-v20131109-0203)<br>
JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0206
(org.jboss.tools.foundation.core.test
1.1.0.Alpha1-v20131109-0206)<br>
Application failed, log file location:
/tmp/config3255596288906066066equinox/1383962733126.log<br>
[INFO]
------------------------------------------------------------------------<br>
</div>
</blockquote>
That's because Foundation Tests is a singleton, and that you
tried to run tests twice which caused to install the same
bundle twice. p2 doesn't allow multiple version in same
application.<br>
If possible, remove the singleton directive from bundle. If
not, then you need to use a clean application (which doesn't
already contain the bundle) for every tests.<br>
</blockquote>
<br>
If I cannot change test an then run it again and again against
the same product installation then there is no point to use this
feature in development. <br>
<br>
Should it be updating singleton instead of installing it? Would
that help?<br>
</blockquote>
If you can avoid singletons, p2 will allow installation of
multiple version of the same plugin. And you shouldn't see this
error.<br>
Otherwise, it means that you'll need either to uninstall previous
version of the bundle, or run tests on a clean application
everytime.<br>
<br>
Singletons are only necessary when plugin define extension points
or extensions. Bundle org.jboss.tools.foundation.test doesn't
provide anything like that. Just get rid of the plugin.xml, remove
the singleton directive in <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://github.com/jbosstools/jbosstools-base/blob/master/foundation/tests/org.jboss.tools.foundation.core.test/META-INF/MANIFEST.MF#L4">https://github.com/jbosstools/jbosstools-base/blob/master/foundation/tests/org.jboss.tools.foundation.core.test/META-INF/MANIFEST.MF#L4</a>
, and p2 would allow several installations of the bundle so you'll
be able to sequentially run tests on the same application without
uninstalling anything.<br>
</blockquote>
Not all tests can be singletons, If we cannot have tests singletons,
how we suppose to test extension points? <br>
<blockquote cite="mid:52833932.5010808@redhat.com" type="cite"> <br>
<blockquote cite="mid:52833763.2010405@exadel.com" type="cite"><br>
<blockquote cite="mid:5281E8B4.5020806@redhat.com" type="cite">
Please open a bug against Tycho and add me in CC.<br>
</blockquote>
<br>
I'll do that.<br>
</blockquote>
Thx<br>
<div class="moz-signature">-- <br>
Mickael Istria<br>
Eclipse developer at <a moz-do-not-send="true"
href="http://www.jboss.org/tools">JBoss, by Red Hat</a><br>
<a moz-do-not-send="true"
href="http://mickaelistria.wordpress.com">My blog</a> - <a
moz-do-not-send="true" href="http://twitter.com/mickaelistria">My
Tweets</a></div>
</blockquote>
<br>
</body>
</html>