每次规格运行时,RSpec都会打印Run options: include {:focus=>true}
。
我已经知道运行选项是什么,所以有没有办法抑制这个输出?
答案 0 :(得分:5)
如果您设置config.silence_filter_announcements = true
,则现在有一个option for silencing those filter messages:
RSpec.configure do |c|
c.filter_run_including :foo => :bar
c.silence_filter_announcements = true
end