[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PDE JUnit plug-in - how to get it working?

You can avoid the clutter using the binary plugin filter!!

Adam Williams

"Peter Graves" <pgraves@xxxxxxx> wrote in message
news:3D5930A5.8050404@xxxxxxxxxx
> I actually just got past this exact problem today.. The way I got around
> it was to import the binary plugins into my workspace that it lists
> as needed (this may take a couple tried to get all that's needed). To
> import the plugins just do:
> File -> Import ->External Plug-ins and Fragments ->Next ->Next
> Then select the needed plugins, and probably hit the Add Required
> Plug-ins button to make sure you have the dependencies.   Then try to
> run the plugin tests again. If it says it needs more plugins, do the
> same thing again. I suppose you could import them all if you don't mind
> the clutter in your workspace.
> This may not be the nicest way to do this, but "it worked for me".
> Hope it helps,
>    -Peter
>
> Tammo Freese wrote:
> > Hello all,
> >
> >
> > to add JUnit tests for my plugin, I downloaded and installed the
> > pde.junit extension. However, it does not run even simple Tests!
> >
> >
> > As a test, I installed a new Eclipse Release 2.0 in a directory, added
> > the contents of org.eclipse.pde.junit_2.0.0.zip in the plugin directory.
> >
> > Then I created a plugin project with the custom plugin wizard, enabled
> > all plugins in the preferences (plugin-development->target platform).
> >
> > After that I added org.junit to the dependencies of the new plug-in
> > and I tried "Run as ... -> JUnit Plugin Test" on a new AllTests class:
> >
> > package Test;
> > import junit.framework.Test;
> > import junit.framework.TestSuite;
> >
> > public class AllTests {
> >     public static Test suite() {
> >         TestSuite result = new TestSuite();
> >         return result;
> >     }
> >
> > }
> >
> > And I got the following error message:
> >
> > !ENTRY org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Problems encountered loading the plug-in registry.
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Plug-in "org.eclipse.ui" was disabled due to missing or
> > disabled prerequisite plug-in "org.eclipse.update.core".
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Plug-in "Test" was disabled due to missing or disabled
> > prerequisite plug-in "org.eclipse.ui".
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Unable to satisfy prerequisite constraint from
> > "org.eclipse.jdt.ui" to "org.eclipse.ui".
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Plug-in "org.eclipse.pde.junit" was disabled due to missing or
> > disabled prerequisite plug-in "org.eclipse.jdt.ui".
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Unknown extension point "org.eclipse.ant.core.antTasks"
> > specified in plug-in "org.eclipse.core.resources".
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Unknown extension point
> > "org.eclipse.ant.core.extraClasspathEntries" specified in plug-in
> > "org.eclipse.core.resources".
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Unknown extension point
> > "org.eclipse.ant.core.extraClasspathEntries" specified in plug-in
> > "org.eclipse.jdt.core".
> > !SUBENTRY 1 org.eclipse.core.runtime 2 1 Aug 13, 2002 14:25:19.59
> > !MESSAGE Unknown extension point "org.eclipse.team.core.fileTypes"
> > specified in plug-in "org.eclipse.jdt.core".
> >
> > What am I doing wrong here?
> >
> > -
> > Tammo
> >
>
>