What function to enable for org.junit package

I am refactoring my RCP application and I am going to use tycho as a build system.

In this process, I had to rewrite my target platform so that it depended on online repositories. Currently, my goal is something like:

<?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> 

However, this goal does not provide a package for junit tests (org.junit) ... therefore my eclipse has a lot of errors (due to missing junit), and my build does not work.

Does anyone know which unit I should include in? (or, better, how can I get a list of the entire device available in this repository?)

+4
source share
1 answer

you will need a JDT function (unfortunately, there is no smaller function that I know of, including junit)

 <unit id="org.eclipse.jdt.feature.group" version="0.0.0"/> 

Another option is to include single IUs (the .target file format supports this, but the destination editor interface does not work). In this case, you need to make sure that transitive dependencies are also added. Try to add

 <unit id="org.junit" version="0.0.0"/> <unit id="org.hamcrest.core" version="0.0.0"/> 
+6
source

All Articles