CC: | "Jeffrey Ryan Thalhammer" <jeff [...] thaljef.org> |
Subject: | Default 'verbose' setting should do what you want |
As reported by Jeffrey Ryan Thalhammer:
Show quoted text
> In fact, I think most people expect tests to be quiet when they succeed and noisy when
> they fail. So I suggest trapping STDERR and displaying it only if the test fails
> (by default). You could still use verbose to force the output on or off, if you really
> want.
The current default 'verbose' setting for Test::Compile is to "be noisy all the time". It is possible to set unset verbose - which means "never say anything".
The problem with "be noisy all the time" is that it outputs stuff that no one should care about.
The problem with "never say anything" is that you won't see errors if a module doesn't compile.
It should be possible to choose a verbose setting of "be quiet unless there are compile errors". Then maybe that verbose setting should be the default.