使用 PyDev 时如何停止/禁用 PyUnit
我希望每次点击 CtrlF11 时 PyUnit 停止显示。它很分散注意力,而且我无论如何也不理解它的输出,我也没有(故意)选择启用它。我在 PyDev 设置中找不到任何内容。
I would like to have PyUnit stop showing up each time I hit CtrlF11. It's distracting and I don't understand it's output anyways, nor did I (knowingly) elect to enable it. I can't find anything in PyDev settings.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Ctrl + F11 实际上与 PyUnit 无关。它是一个键绑定,默认运行您上次启动的脚本。就您而言,您最后一次启动必须是 PyUnit 启动。如果您使用“运行方式”启动脚本,那么按 Ctrl + F11 就会启动该脚本。
这可能是解决您问题的一个可能的解决方案:
从运行历史记录中删除 PyUnit 启动器(运行 -> 运行配置,然后删除下面列出的配置Python unittest。
希望 有帮助!
切里奥·沃尔坦
Ctrl + F11 has actually nothing to do with PyUnit. It is a key binding that per default runs the script you last launched. In your case the last launch you made must have been a PyUnit launch. If you would have launched the script with Run As then this would be launched if you press Ctrl + F11.
This could be a possible solution to your problem:
Remove the PyUnit launcher from Run History (Run -> Run Configurations and then delete the the configurations listed below Python unittest.
Hope that helped!
Cherio Woltan
实际上,在 PyDev > 中PyUnit 设置(在您显示的同一屏幕中),如果您取消选中“在单元测试结果视图中显示结果”,它应该执行您想要的操作(即:停止显示 PyUnit 视图)...或者这不是什么你想要吗?
Actually, in the PyDev > PyUnit settings (in the same screen you've shown), if you uncheck the 'show the results in the unittest results view', it should do what you want (i.e.: stop showing the PyUnit view)... or that's not what you wanted?