Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override project configuration options without parameters? #2710

Open
lackovic opened this issue Mar 30, 2020 · 2 comments
Open

How to override project configuration options without parameters? #2710

lackovic opened this issue Mar 30, 2020 · 2 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants