Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing "Run as JUnit Test"

Tags:

I created a JUnit 4 test in Eclipse by right-clicking on a Java class and selecting New JUnit Test Case. When I right-click the test class I get "Run on Server", but not "Run as JUnit Test". I am using Eclipse 3.6.1.

like image 898
amaran Avatar asked Jun 16 '11 00:06

amaran


People also ask

Why does Eclipse not show JUnit?

If you right click in Project Explorer and choose New, you see a much shorter menu that doesn't include the Junit option. Needs to be done in Package Explorer view...


1 Answers

In my case, Eclipse must have reached a corrupt state. Restarting Eclipse fixed the problem.

like image 87
Jeff Axelrod Avatar answered Sep 28 '22 11:09

Jeff Axelrod