On Sun Oct 07 15:24:44 2007, CHORNY wrote:
Show quoted text> On Jul 16 16:49:10 2007, davidnicol@gmail.com wrote:
> > On 7/11/07, Alexandr Ciornii via RT <bug-CGI-AIS-Session@rt.cpan.org>
> wrote:
> > >
> > > Can you convert tests to Test::Simple/Test::More? test.pl tests are
> > > not reported properly by CPANPLUS.
> >
> > By the principle of minimization of total maintenance effort, that
> > is a bug in CPANPLUS.
>
> Then you should modify test to return correct exit status:
>
> END {print "not ok 1\n" unless $loaded; exit(1) unless $loaded;}
CPANPLUS only looks at the exit status of 'make test'. Oddly enough, if
it's a Test::More based test.pl, the exit status is set in 'make test'
after failure. If it's Test.pm based, it is not.
The easy fix is equally odd: Test.pm based tests that live in the
t/some_test.t framework (ie, all tests under t/) DO get picked up by
test::harness correctly, and set the exit status for make test.
So, to get around this specific issue, you can do:
mv test.pl t/test.t
and everything should work as expect.
Arguably, this could be construed as an issue with Test::Harness, it may
also be for Historical Reasons =/