On 9/20/07, Dmitry Karasik <[EMAIL PROTECTED]> wrote:
> That's indeed a non-Test::Harness routine, and for a reason: Prima is X11
> toolkit, and imagine timeouts on 50+ tests trying to connect to an X server.
> Unless there's a reason, don't bother about this case -- CPAN::Reporter wants
> output "All tests successful", so I'll happily print that line (if indeed, 
> they
> are successsfull) in the next version.

Well, I am concerned about the more general case of how to detect the
difference between a custom test suite and something that is missing
test.pl or any "t/*.t" files.  I used to be constrained such that I
couldn't rely on the exit value of "make test", but that problem has
been solved for a while.  It's used in some cases in CPAN::Reporter,
but not all.

In your case, I found that if you move "test/Tester.pl" to the main
directory and call it "test.pl" and update your Makefile accordingly,
then your tests still pass and CPAN::Reporter is happy.  (This
wouldn't work with Build.PL since it forces test.pl to Test::Harness,
but you're not using Build.PL, so you're OK.)

As a side note, I keep meaning to try out Prima -- I usually mention
it on Perl Monks when someone asks about GUI support.  It seems like
an impressive project.  Now that I've actually gotten around to
compiling it, I may have to experiment with it.

Regards,
David

Reply via email to