Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Simple CPAN distribution.

Report information
The Basics
Id: 76802
Status: rejected
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: mjp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Test::More loads Exporter, conceals omission of "use Exporter"
Math::Counting sets up @EXPORT and %EXPORT_TAGS and @ISA, but forgets to actually require Exporter. As a consequence, simple use of the module fails, since no subs are exported. Unit tests pass, however, since Test::More pulls in Exporter, concealing the author's omission. Can Test::Simple and friends perhaps rely on their own bundled version of core libs like Exporter?
Thanks for the report. I appreciate the problem, and it is a genuine one. Unfortunately the proposed solution does not scale. In the past we've striven to load as few modules as possible, but as Test::Builder and Test::More evolve they have to be able to make use of other core modules, any of which might use Exporter. Or Carp. Or whatever. Right problem, wrong solution. Other solutions welcome to be considered.
On Wed Apr 25 08:38:54 2012, MJP wrote: Show quoted text
> Math::Counting sets up @EXPORT and %EXPORT_TAGS and @ISA, but forgets > to actually require > Exporter. As a consequence, simple use of the module fails, since no > subs are exported. > > Unit tests pass, however, since Test::More pulls in Exporter, > concealing the author's omission. > > Can Test::Simple and friends perhaps rely on their own bundled version > of core libs like > Exporter?
This has been discussed a few times on #toolchain. Test::More can use core modules despite this problem, rejecting ticket.