Issue
I've been following along a couple of tutorials and at the point where they run the tests in the junit test view in Eclipse, mine just looks disabled, and I can see any tests to run:
src="https://i.stack.imgur.com/NhHWz.png" alt="Screenshot of Eclipse and JUnit view">
Notice on the right hand side I have an empty JUnit view. None of the tutorials mention anything about this situation. You can see the JUnit library in my Package Explorer too. What do I need to do now to get my test to run in the JUnit test view?
Solution
You got the project setup right, now you need to tell eclipse to execute the test cases locate in the project, for that you need to do the following
Right click project --> run as --> Junit Test
And the Junit view of the eclipse will get populated with the test runs as below with the results of which cases failed and which passed
Answered By - Saif Asif
Answer Checked By - Gilberto Lyons (JavaFixing Admin)