Showing JUnit view in Eclipse when running tests from Code

14,586

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

Share:
14,586
Hans En
Author by

Hans En

Updated on June 28, 2022

Comments

  • Hans En
    Hans En almost 2 years

    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?

  • Hans En
    Hans En about 11 years
    The problem is the View will not show anything even if I open it by hand.