Julien Beasley wrote:
Hi,
I've found that using Test::Files in a test script changes the output of
TODO tests in Test::Harness.
Here's the problem.
$ perl -wle 'use Test::Files; print Test::Builder->new->exported_to'
Test::Files
exported_to() is the mechanism Test::Builder uses to guess in what package
to look for the $TODO flag. It tries to guess right but is sometimes wrong.
http://rt.cpan.org/Ticket/Display.html?id=24725
Anyhow, here's the problem:
package Test::Files;
use Test::Builder;
use Test::More; <--------- what's this doing there?
use Text::Diff;
use File::Find;
use File::Spec;
Just remove that and everything goes smoothly. It can make use of
Test::Builder::Module to make things even more foolproof.