JUnit4 + Eclipse “An internal error occurred during Launching”

后端 未结 10 1585
深忆病人
深忆病人 2020-12-09 16:37

I\'m trying to run JUnit4 test cases on Eclipse 3.4.2 but it\'s not even starting for me. I have the junit-4.7.jar in my build path and the test application.

Here i

10条回答
  •  無奈伤痛
    2020-12-09 17:37

    If you are using Android and its associated plugins, then Android only supports JUnit 3.

    I resolved the problem by selecting Test Runner as JUnit 3.

    In my class, JUnit 4 is added in the build path->libraries.

    Then to run the test file, go to: Run As -> Run Configurations then select the corresponding test.java file and select Test Runner accordingly(whether it is JUnit 3 or 4).

提交回复
热议问题