How to simultaneously run all JUnit tests for a Eclipse Java project without Maven?

JavaEclipseJunit

Java Problem Overview


I have a small Java project in Eclipse. I have a class of JUnit tests for each class in the project. I'm using JUnit 4, and this is not a maven project.

Is there an easy way to tell Eclipse to run all tests in all test classes at once?

Java Solutions


Solution 1 - Java

Right click on a source folder then Run As… > JUnit Test.

Solution 2 - Java

Select the source directory containing all test classes, right-click, select "Run as..." and select JUnit test.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEric WilsonView Question on Stackoverflow
Solution 1 - JavaConstantinerView Answer on Stackoverflow
Solution 2 - JavaMike YockeyView Answer on Stackoverflow