'No JUnit tests found' in Eclipse

后端 未结 22 2935
闹比i
闹比i 2020-12-13 08:35

So I\'m new to JUnit, and we have to use it for a homework assignment. Our professor gave us a project that has one test class, BallTest.java. When I right clic

22条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 09:07

    In Eclipse Photon you may need to add JUnit 4 or 5 to the build path. Right click @Test and select 'Add JUnit 4 to build path'.

提交回复
热议问题