Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress displaying pending (skipped) specs in RSpec?

Tags:

ruby

rspec

I have several skipped specs.

Pending: (Failures listed here are expected and do not affect your suite's status)

1) ...
   # Not yet implemented
   # ./spec/requests/request_spec.rb:22

How to suppress the output of pending specs?

like image 827
B Seven Avatar asked Apr 27 '15 21:04

B Seven


1 Answers

You can add the following config option to filter out all pending specs from the run:

RSpec.configure do |config|
  config.filter_run_excluding skip: true
end

Also, here is a more elaborate suggestion to suppress the output

like image 128
Motine Avatar answered Oct 14 '22 01:10

Motine