Hi Phil,

Yes, I simply added the following line to the .rspec file and it works just
fine

--exclude-pattern "spec/excluded/*"

Thank you
Joao


On Thu, Jan 7, 2021 at 8:04 PM Phil Pirozhkov <pirjs...@gmail.com> wrote:

> 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
> *Reply To: *rspec@googlegroups.com
> *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 rspec+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/4e48c09f-fae8-4863-a8d6-cb9ed5ce3cban%40googlegroups.com
> <https://groups.google.com/d/msgid/rspec/4e48c09f-fae8-4863-a8d6-cb9ed5ce3cban%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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 rspec+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/20210107200425.5840978.98647.11453%40gmail.com
> <https://groups.google.com/d/msgid/rspec/20210107200425.5840978.98647.11453%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 rspec+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CALyyT7T7fUttXiua%3DBfYmwuUpRitjsyWn73rzjOq7dQQ0%2BjdsQ%40mail.gmail.com.

Reply via email to