'No JUnit tests found' in Eclipse

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

    Try this

    Right Click on the Unit Test Class,

    1. Select "Run As" -> Run Configuration
    2. In the "Test" tab, make sure in the field "Test runner" select drop down "JUnit 4"
    3. Click "Apply"

    Now Run the test!

提交回复
热议问题