Skip to content

Show warnings #159

@svoop

Description

@svoop

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions