Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 446
Eric Wilson Avatar asked Apr 22 '11 20:04

Eric Wilson


People also ask

How do I run all JUnit tests in project?

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


2 Answers

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

like image 52
Constantiner Avatar answered Oct 30 '22 23:10

Constantiner


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

like image 42
Mike Yockey Avatar answered Oct 30 '22 22:10

Mike Yockey