'No JUnit tests found' in Eclipse

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

    1. Right click your project ->Properties->Java Build Path and go to Source Tab then add your test src folder.
    2. Select Project menu and unselect 'Build Automatically' option if selected
    3. Select Clean and then select 'Build Automatically' option
    4. Restart Eclipse and run your junit.

提交回复
热议问题