Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing JUnit view in Eclipse when running tests from Code

When I run just my Testclass in Eclipse I get the JUnit view showing the tree structure and if the test was successful. If I start my Test from code:

JUnitCore core = new JUnitCore();
core.run(SimpleTests.class);

the view does not show. Can I change this?

like image 821
Hans En Avatar asked Sep 14 '25 03:09

Hans En


1 Answers

On your toolbar click Windows-->Show View-->Others. Type "Junit" without quotes. Select from list and click OK.

like image 160
Anurag Tripathi Avatar answered Sep 16 '25 17:09

Anurag Tripathi