guard / guard-minitest

Guard::Minitest automatically run your tests (much like autotest)
https://rubygems.org/gems/guard-minitest
MIT License
249 stars 88 forks source link

Show warnings #159

Open svoop opened 1 year ago

svoop commented 1 year ago

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?