Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Executing plugIn unit tests with buckminster headless
Executing plugIn unit tests with buckminster headless [message #1233845] Mon, 20 January 2014 11:29 Go to next message
Felix Feisst is currently offline Felix Feisst
Messages: 20
Registered: February 2012
Location: Germany
Junior Member
Hello,

I try to execute some plugIn tests with buckminster headlessly. However, when buckminster trys to execute the launch configuration with the junit command, the following error occurs:

[INFO] Launch configuration type id "org.eclipse.pde.ui.JunitLaunchConfig" does not exist.
[INFO] Possible causes:
[INFO]  Missing specification of a launch type (missing plug-in)
[INFO]  Incorrect launch configuration XML


My launch configuration looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
<booleanAttribute key="append.args" value="true"/>
<booleanAttribute key="askclear" value="false"/>
<booleanAttribute key="automaticAdd" value="true"/>
<booleanAttribute key="automaticValidate" value="false"/>
<stringAttribute key="bootstrap" value=""/>
<stringAttribute key="checked" value="[NONE]"/>
<booleanAttribute key="clearConfig" value="true"/>
<booleanAttribute key="clearws" value="true"/>
<booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
<booleanAttribute key="default" value="true"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/plugin.test"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=plugin.test"/>
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="plugin.test"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
<booleanAttribute key="run_in_ui_thread" value="true"/>
<booleanAttribute key="show_selected_only" value="false"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useCustomFeatures" value="false"/>
<booleanAttribute key="useDefaultConfig" value="true"/>
<booleanAttribute key="useDefaultConfigArea" value="false"/>
<booleanAttribute key="useProduct" value="true"/>
</launchConfiguration>


Any help is appreciated! Thanks,
Felix
Re: Executing plugIn unit tests with buckminster headless [message #1233849 is a reply to message #1233845] Mon, 20 January 2014 11:40 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1307
Registered: July 2009
Senior Member
On 20/01/2014 17:29, Felix Feisst wrote:
> Hello,
>
> I try to execute some plugIn tests with buckminster headlessly. However,
> when buckminster trys to execute the launch configuration with the junit
> command, the following error occurs:
>
>
> [INFO] Launch configuration type id
> "org.eclipse.pde.ui.JunitLaunchConfig" does not exist.
> [INFO] Possible causes:
> [INFO] Missing specification of a launch type (missing plug-in)
> [INFO] Incorrect launch configuration XML
>

Hi Felix

you must install org.eclipse.buckminster.pde.headless.feature in your
buckminster headless installation.

hope this helps
Lorenzo

--
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
Re: Executing plugIn unit tests with buckminster headless [message #1233925 is a reply to message #1233845] Mon, 20 January 2014 16:16 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3214
Registered: July 2009
Senior Member
Hi Felix,

What version are you using? IIRC, the ui dependency in the launch config has been removed for quite a while. It was
removed because you really want to be able to launch headlessly.

- thomas

On 2014-01-20 17:29, Felix Feisst wrote:
> Hello,
>
> I try to execute some plugIn tests with buckminster headlessly. However, when buckminster trys to execute the launch
> configuration with the junit command, the following error occurs:
>
>
> [INFO] Launch configuration type id "org.eclipse.pde.ui.JunitLaunchConfig" does not exist.
> [INFO] Possible causes:
> [INFO] Missing specification of a launch type (missing plug-in)
> [INFO] Incorrect launch configuration XML
>
>
> My launch configuration looks like this:
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
> <booleanAttribute key="append.args" value="true"/>
> <booleanAttribute key="askclear" value="false"/>
> <booleanAttribute key="automaticAdd" value="true"/>
> <booleanAttribute key="automaticValidate" value="false"/>
> <stringAttribute key="bootstrap" value=""/>
> <stringAttribute key="checked" value="[NONE]"/>
> <booleanAttribute key="clearConfig" value="true"/>
> <booleanAttribute key="clearws" value="true"/>
> <booleanAttribute key="clearwslog" value="false"/>
> <stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
> <booleanAttribute key="default" value="true"/>
> <booleanAttribute key="includeOptional" value="true"/>
> <stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
> <listEntry value="/plugin.test"/>
> </listAttribute>
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
> <listEntry value="4"/>
> </listAttribute>
> <stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=plugin.test"/>
> <booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
> <stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
> <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
> <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
> value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch
> ${target.arch} -nl ${target.nl} -consoleLog"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="plugin.test"/>
> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
> value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
> <stringAttribute key="pde.version" value="3.3"/>
> <stringAttribute key="product" value="org.eclipse.sdk.ide"/>
> <booleanAttribute key="run_in_ui_thread" value="true"/>
> <booleanAttribute key="show_selected_only" value="false"/>
> <booleanAttribute key="tracing" value="false"/>
> <booleanAttribute key="useCustomFeatures" value="false"/>
> <booleanAttribute key="useDefaultConfig" value="true"/>
> <booleanAttribute key="useDefaultConfigArea" value="false"/>
> <booleanAttribute key="useProduct" value="true"/>
> </launchConfiguration>
>
>
> Any help is appreciated! Thanks,
> Felix
Re: Executing plugIn unit tests with buckminster headless [message #1236841 is a reply to message #1233925] Tue, 28 January 2014 02:41 Go to previous message
Felix Feisst is currently offline Felix Feisst
Messages: 20
Registered: February 2012
Location: Germany
Junior Member
Thank you so far, installing org.eclipse.buckminster.pde.headless.feature into my buckminster installation solved the problem so far.

However, I do get a follow up error now. When buckminster trys to run the launch configuration an error occurrs. In the corresponding log I found:
java.lang.RuntimeException: Application "org.eclipse.pde.junit.runtime.nonuithreadtestapplication" could not be found in the registry.


I have change the attribute "run_in_ui_thread" in the launch configuratin to false, having this attribute on true gives a similar error.
Previous Topic:Headless build for Java-8 applications
Next Topic:is git.auto.fetch implemented at all?
Goto Forum:
  


Current Time: Mon Jul 28 20:51:09 EDT 2014

Powered by FUDForum. Page generated in 0.02439 seconds