如何在 eclipse 内的 junit4 测试运行程序中设置 -noloading 选项
为了从 eclipse 内部运行我的 apache axis 集成测试,我需要在 eclipse junit 测试运行程序上设置 -noloading 选项。有谁知道我该怎么做?
我正在使用 eclipse 版本:3.5.1
In order to run my apache axis integration tests from inside eclipse, I need to set the -noloading option on the eclipse junit test runner. Does anyone know how I can do this??
I am using eclipse Version: 3.5.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过添加条目loading=false来配置junit.properties文件。找到的文件应该位于“user.home”中。
有关更多信息,请查看 jUnit 主页 [http://junit.sourceforge.net/junit3.8.1/index.html]。是的,我知道这个问题与 jUnit4 有关。我仔细检查了 junit.runner.BaseTestRunner 并且加载属性选项仍然存在。
You can configure a junit.properties file by adding an entry loading=false. The file located should be located in the "user.home".
For more information check out the jUnit homepage [http://junit.sourceforge.net/junit3.8.1/index.html]. Yes I know this question is related to jUnit4. I double checked the junit.runner.BaseTestRunner and the loading properties option is still present.
不要设置 -noloading 参数(我认为当前的 Junit TestRunner 不支持该参数),而是在 junit 类中添加此方法。它将直接解决您的问题
rather than set the -noloading parameter (which I don't believe is supported in the current Junit TestRunner), add this method in your junit class. It will solve your issue directly