在 Eclipse 中更改默认的 TestRunner

Vit*_*lij 5 eclipse junit default

所有测试都应该使用 jUnit3 运行,如果我运行一个未配置的测试,它会尝试使用默认的 TestRunner (jUnit4)。

因此,我必须进入运行/调试配置,将 TestRunner 更改为“jUnit3”并再次运行它。

在每次测试中。这只会干扰工作流程。

那么,是否可以选择删除 jUnit4 作为可能的 TestRunner,或者甚至更好,将 Default TestRunner 更改为 jUnit3 ?

提前致谢,

Aar*_*lla 0

确保 junit 3 JAR 位于类路径中,而不是 JUnit 4 JAR。那么,Eclipse 应该做正确的事情。