如何抑制RSpec输出中的Webkit消息 [英] How do I suppress webkit messages in rspec output
问题描述
我刚刚与Mavericks一起使用Macbook pro视网膜,并开始在我的rspec输出中得到这些警告消息:
I've just moved to a macbook pro retina with Mavericks and have started getting these warning messages in my rspec output:
webkit_server [55708:507] CoreText性能说明:客户端使用名称 Arial调用
CTFontCreateWithName()并获得了带有PostScript
名称 ArialMT的字体。为了获得最佳性能,请仅在
调用此API时使用PostScript名称。
webkit_server[55708:507] CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.
我将capybara与webkit javascript驱动程序配合使用通过在我的spec_helper.rb文件中设置以下内容:
I'm using capybara with the webkit javascript driver by setting the following in my spec_helper.rb file:
Capybara.javascript_driver = :webkit
有人知道如何隐藏消息吗?
Does anyone know how to suppress the messages?
推荐答案
您可以执行此操作
brew uninstall qt && brew update && brew install qt
相关: https://github.com/thoughtbot/capybara-webkit/issues/581
这篇关于如何抑制RSpec输出中的Webkit消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!