Skip Menu |

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

Report information
The Basics
Id: 15413
Status: resolved
Priority: 0/
Queue: Test-Distribution

People
Owner: Nobody in particular
Requestors: nothingmuch [...] woobling.org
Cc:
AdminCc:

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



Subject: Test::Distribution chokes on "t/lib" hierarchy
When Test::Distribution is used it finds modules under 't/lib', e.g. 't/lib/Foo.pm' and then instead of trying to 'use Foo' with a modified @INC, it tries to 'use lib::Foo'.
Subject: Test::Distribution chokes on "t" hierarchy
From: cdolan [...] cpan.org
[NUFFIN - Mon Oct 31 03:07:05 2005]: Show quoted text
> When Test::Distribution is used it finds modules under 't/lib', e.g. > 't/lib/Foo.pm' and then instead of trying to 'use Foo' with a modified > @INC, it tries to 'use lib::Foo'.
[Changed subject to remove the reference to "lib"] I'd like to add a "me too" on this. I have a file called t/MockObject.pm and Test::Distribution is getting very confused by that. The $self->{packages} list should come from searching blib for .pm files, not from searching the MANIFEST. See Test::Perl::Critic for a good example. -- Chris
From: cdolan [...] cpan.org
v1.23 solves this problem for me, but I still assert that looking in lib/ is a bad idea. Test modules should work exclusively against blib/, which specifically contains the files that are intended for install. -- Chris
I agree. The change in v1.23 was to solve a different bug/problem that a particular user was having. I will look to changing the module to look in blib/lib in a future release