使用Eclipse构建失败后运行测试

时间:2016-01-06 15:19:26

标签: eclipse junit

我正在使用Eclipse Mars for Java。昨天我有理由运行我的JUnit测试的子集,即使其他.java文件无法构建。有一个对话框允许我这样做,不幸的是我不记得确切的文字,但它就像"有编译问题。你还想进行测试吗?"。昨天我查了一下"不要再问我了#34;该对话框上的框。现在我不知道如何取回它。

如何撤消该偏好设置?

1 个答案:

答案 0 :(得分:1)

你的意思是这个警告对话框吗?

enter image description here

如果您决定进行测试,则当项目出现编译错误时,您需要设置为提示以显示警告对话框。

转到:

Eclipse - Windows - Preferences - Run/Debug - Lauching

Continue launch if project contains errors
Prompt

enter image description here