Hi João

Yes, set metadata on those files with ‎https://www.rubydoc.info/github/rspec/rspec-core/RSpec%2FCore%2FConfiguration:define_derived_metadata and exclude them using that tag with this option https://relishapp.com/rspec/rspec-core/v/3-10/docs/command-line/tag-option and put it to your .rspec file.

Or you can use ‎https://relishapp.com/rspec/rspec-core/v/3-10/docs/configuration/exclude-pattern and put it to .rspec file.

From: Joao Miguel Ferreira
Sent: Thursday, 7 January 2021 22:40
To: rspec
Subject: [rspec] exclusion/inclusion list

Hello,

Is it possibe to tell rspec to exclude a few files or a whole directory ?

spec/dirA/features_a_spec.rb
spec/dirB/features_b_spec.rb
spec/too_dangerous_dont_even_try/x_rspec.rb

rspec would not go into the "too_dangerous" directory.

in an ideal scenario the paths to be excluded would be listed on a text file somewhere

Thank you
João

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/4e48c09f-fae8-4863-a8d6-cb9ed5ce3cban%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/20210107200425.5840978.98647.11453%40gmail.com.

Reply via email to