Running a single JUnit test in Eclipse

后端 未结 13 567
面向向阳花
面向向阳花 2020-11-27 15:05

If I have a test suite with multiple tests, when I try to run a single unit test, either from the context menu of the code editor, or from the JUnit view, it seems to insist

13条回答
  •  离开以前
    2020-11-27 15:43

    This is possible in Eclipse Indigo with JUnit 4.8.2. You right click the method you want to unit test individually in the Outline pane, and select Run As -> JUnit Test.

    You can even selectively right click a Test method name in the source editor and select Run As -> Junit Test.

提交回复
热议问题