Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

How to override project configuration options without parameters? #2710

Closed
lackovic opened this issue Mar 30, 2020 · 3 comments
Closed

How to override project configuration options without parameters? #2710

lackovic opened this issue Mar 30, 2020 · 3 comments

Comments

@lackovic
Copy link

lackovic commented Mar 30, 2020

.rspec-local allow individual developers to set options that override the common project options in .rspec (see Read command line configuration options from files).

It is clear how to add options and change options which accept arguments, but how do you disable/suppress common project options that don't accept any argument?

For example, given the following .rspec:

--backtrace

What should developers write in their .rspec-local to disable backtracing?

  • Ruby version: 2.5.3
  • rspec-core version: 3.8

Related issue: #599

@pirj
Copy link
Member

pirj commented Mar 30, 2020

Do you suggest a --no-backtrace option to override a project-level --backtrace just like --no-color/--no-profile do?
You may start here and draw some inspiration here for the start if you would like to tackle adding this option @lackovic. Some changes to docs and tests will come along, but worry not, we'll help you along the way.

@lackovic
Copy link
Author

That seems like it will do! Thanks for the hints, I will gladly work on this as soon as I find the time.

@JonRowe
Copy link
Member

JonRowe commented Nov 27, 2024

Closing due to inactivity during the monorepo migration, but if something did come out of it please open a PR over there.

@JonRowe JonRowe closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants