11

Every time the specs run, RSpec prints Run options: include {:focus=>true}.

I already know what the run options are, so is there a way to suppress this output?

3
  • 2
    @LandonSchropp Currently this message is always displayed if at least one filter is provided and there is no way to disable it: github.com/rspec/rspec-core/blob/…. As a hacky workaround you could create your own formatter which would filter out the messages starting with "Run options" and use your formatter instead of the default one.
    – nemesv
    Feb 24, 2015 at 16:14
  • @nemesv That's a bummer, but thanks for the comment. Mar 1, 2015 at 20:02
  • 1
    I opened an issue in rspec-core for this topic. github.com/rspec/rspec-core/issues/1896 Mar 5, 2015 at 19:37

1 Answer 1

7

There is now an option for silencing those filter messages if you set config.silence_filter_announcements = true like this:

RSpec.configure do |c|
  c.filter_run_including :foo => :bar
  c.silence_filter_announcements = true
end   

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.