Re: Discussion/request on Test::More , have it add t/lib to @INC if -d

[email protected] (James E Keenan) Fri, 31 Jan 2014 19:19:29 -0500
Newsgroups perl.qa
Message-ID <[email protected]>
On 1/30/14 10:25 PM, Leon Timmermans wrote:
> On Fri, Jan 31, 2014 at 1:59 AM, Torbjørn Lindahl<
> [email protected]>  wrote:
>
>>
>> It seems t/lib is a common place to put modules used to support testing,
>> how about having Test::More push that path to @INC if -d 't/lib' ? It would
>> save me one , possibly two annoying lines of code in every .t file I write.
>> With an import tag, ':automiport' or something, it could perhaps require
>> all .pm files in that dir too/instead?
>>
>
> I don't like magical behavior. «use lib 't/lib';» is far more
> self-documenting, and automatically requiring all .pm files is plain evil.
>

+1