* On Tue, Jun 10 2008, Elliot Shank wrote:
> Dave Rolsky wrote:
>> On Tue, 10 Jun 2008, Eric Roode wrote:
>>> How do you do that, by the way?  How do you set it up so the test
>>> suite knows it's you and not an end-user?
>>
>>   plan skip_all => 'This test is only run for the module author'
>>       unless -d '.svn' || $ENV{IS_MAINTAINER};
>
> Perl::Critic used to do that sort of thing, but no more.  Too many
> times people would grab from the public repository or have the same
> environment variable set and the author tests would run and we'd get
> failure reports.  Now, in order to run author tests you actually have
> to specifically invoke a Module::Build target to get them to run

This is basically what I do.  Normal tests are t/*.t, author tests are
t/author/*.t, and I just "prove -Ilib t/author" when I want to run the
author tests.

If I want multiple levels (t/*/*.t), then I put my author tests in
t_author instead.  It works well enough :)

Regards,
Jonathan Rockway

-- 
print just => another => perl => hacker => if $,=$"

Reply via email to