On Sun Aug 06 15:00:28 2006, west.finchley@leegoddard.net wrote:
Show quoted text> As I was generating the sample I got the following:
>
> You tried to run a test without a plan! Gotta have a plan. at
> C:/perl58/lib/Test/More.pm line 263
> # Looks like your test died before it could output anything.
>
> I understand the error message, and why it occurred -- I've been using
> your excellent module for years. BUt what alwyas irks me, over the
> years, is that the error message appears to come from Test::More's 263
> line. Should it not, in fact, apoint blame to the package which
> mis-called Test::More?
You're right, it should. And as I'm in a hacking mood I've fixed that
and all the other "die" messages in Test::Builder.
Show quoted text> The result of fail is a very useful message:
>
> # Failed test 'Thanks'
> # in C:\temp.pl at line 2.
>
> Useful to me, but not to my text editor, which is so useless it can only
> handle one regular expression at a time, which it uses to match error
> reports in STDERR/STDOUT from scripts and programmes.
>
> ^.+at \(.+\) line \([0-9]+\)[.,]?
>
> That's what most of the editor's users use at the moment, to match
> against Perl's error reporting format.
>
> Would it be an awful hassle to have Test::More output in the same way?
> Is it even Test::More doing the output, or is that Test::Builder?
> Perhaps I should have checked the code before writing....
(Its in Test::Builder, nearly everything is)
I cringed at the thought of changing the tests to match a different
diagnostic format, not to mention the potential damage to
Test::Builder::Tester, but it was surprisingly easy with a few clever
search and replaces.
These will appear in the next release.