'No JUnit tests found' in Eclipse

后端 未结 22 2993
闹比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:16

    I think you have created your test classes outside the src folder. You can solve above problem by two way:

    1. Add your package name in java build path->source

    2. Move your package/class in src folder

    I have the same problem and solved in this way both solutions working fine.

提交回复
热议问题