in reply to Re^4: STDERR in Test Results
in thread STDERR in Test Results
It's a good question. I'm a proponent of not making the end user install more than they need so in the general case I would agree.
However, in this particular case we are talking about Test::Warn which at the time of writing this post has 365 direct dependents and 5381 total dependents. In other words, if you were to install any random dist from CPAN there's a decent chance that it will require Test::Warn. For such a widely-used dist I would have few qualms about adding this as a dependency of one of my dists.
The other option, as already outlined by kcott, is to make it optional. List Test::Warn as one of the "recommended" or "suggested" dependencies. Then if it isn't installed and the user doesn't want to install it that's fine but you need the test which uses it to check for this and skip that block if Test::Warn is missing. See for example Exporter::Tiny which recommends Test::Warnings and Test::Fatal and then checks for their presence.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: STDERR in Test Results
by Bod (Parson) on Jun 25, 2023 at 16:24 UTC | |
by hippo (Archbishop) on Jun 26, 2023 at 10:05 UTC | |
by afoken (Chancellor) on Jun 25, 2023 at 21:40 UTC |