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

Show warnings #159

Open
svoop opened this issue Dec 16, 2022 · 0 comments
Open

Show warnings #159

svoop opened this issue Dec 16, 2022 · 0 comments

Comments

@svoop
Copy link

svoop commented Dec 16, 2022

I've noticed my MiniTest suite throwing "warning: method redefined" at me when running with rake. Using guard, however, the warnings are suppressed and I don't see where this is configured or how this is happening.

The Rakefile has a setting for this:

Rake::TestTask.new do |t|
  t.warning = true
end

RUBYOPT is set to the same value not including any -W – checked that in a unit test which issues a warning.

There's no such thing in Guardfile, can warnings be enabled at all? If not, why are they suppressed by default and would a PR be considered which adds a config similar to the one in Rake::TestTask?

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

1 participant