views:

136

answers:

3

I recently purchased a mac and am trying to get junit tests working on Eclipse. I am using the latest Galileo, but for some reason there is no option to "run as junit" on the tests. What am I doing wrong? There's no JUnit view panel either. However I went into the "About Eclipse" thing and it said JUnit is installed. I also port installed junit.

A: 

Are you in the right perspective? JUnits show up for me.

Edit:

You can try opening the runtime configuration menu (do Run>Run as...) and see if JUnit shows up. If not, try running a software update and pull JUnit down.

Malaxeur
+2  A: 

I accidentially downloaded the wrong distribution, which did not contain junit. Consider getting the JEE edition - it has junit.

Thorbjørn Ravn Andersen
thanks I installed JEE and it worked out :)
Sam
A: 

Is your test project configured to use the correct version of junit? Check the java build path of the project.

Also are you tests specified correctly? Using the @Test annotation for junit 4 etc? I just hit this problem a few minutes ago.

iain