'No JUnit tests found' in Eclipse

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

    Right Click on Project > Properties > Java Build Path > Add the Test folder as source folder.

    All source folders including Test Classes need to be in Eclipse Java Build Path. So that the sources such as main and test classes can be compiled into the build directory (Eclipse default folder is bin).

提交回复
热议问题