Eclipse rcp bundle org.junit要包括哪些功能
我正在重构我的RCP应用程序,我将使用tycho作为构建系统 在这个过程中,我不得不重写我的目标平台,以便依赖在线存储库。目前,我的目标是:Eclipse rcp bundle org.junit要包括哪些功能,eclipse-rcp,tycho,Eclipse Rcp,Tycho,我正在重构我的RCP应用程序,我将使用tycho作为构建系统 在这个过程中,我不得不重写我的目标平台,以便依赖在线存储库。目前,我的目标是: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <?pde version="3.6"?> <target name="MyRcpApp" sequenceNumber="12"> <locations> <location in
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>
<target name="MyRcpApp" sequenceNumber="12">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<unit id="org.eclipse.rcp.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0" />
<repository location="http://download.eclipse.org/releases/indigo/"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
</target>
但是,此目标不提供junit测试包(org.junit)。。。因此,我的eclipse有很多错误(由于缺少junit),构建失败
有人知道我应该包括哪个单元吗?(或者,更好的方法是,如何获得给定存储库中所有可用单元的列表?您将需要JDT功能(不幸的是,据我所知,没有包括junit的较小功能)
另一个选项是包含单包IUs(目标文件格式支持此功能,但目标编辑器UI不支持)。在这种情况下,您需要确保还添加了可传递依赖项。尝试添加
<unit id="org.junit" version="0.0.0"/>
<unit id="org.hamcrest.core" version="0.0.0"/>
+1用于包含单个装置!我不希望整个JDT只运行我的junit测试!
<unit id="org.junit" version="0.0.0"/>
<unit id="org.hamcrest.core" version="0.0.0"/>