-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On 22-Jan-02 Allen Smith tried to scribble about:
> On Jan 22, 12:52pm, Tels wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Moin,
>> On 22-Jan-02 Matt Sergeant tried to scribble about:
>> > Is it possible for cpan testers to send the output of:
>> >   $ make test TEST_VERBOSE=1
>> > On failure, rather than plain make test? It would make debugging
>> > these things a lot easier. Thanks!
>>
>> I am currently hacking together scripts to automate testing for me,
>
> I'd bet others would be interested in those... I am, for instance.

;o) Will sent you a copy when I got it a bit more done. Currently you need
to start it manually for each package.

I mainly started on something since I can't use CPAN::Reporter or what it
was called, since I can't sent mail directly. I need it to generate a
text-file, which get's inserted into my outbox and then get's sent. (Much
easier to do than implement pop-after-smtp and all that ;)

>> and deciding upon failure re-run the test with verbose and then
>> remove the ok lines. Would that be okay in style?
>
> I would suggest _not_ removing the "ok" lines surrounding a particular
> failure (or other unexpected output).

I only remove /\nok\s[0-9]+\n/ lines.

> In case the line ordering gets
> mixed up, or the program entirely crashes as opposed to returning "not
> ok", that appears to be a helpful precaution.
>       -Allen

Fair point, but consider Math::BigInt, has about 11,000 tests and will soon
hit the 12,000 mark. If one of them fails, you are swamped by 11,999 ok
lines and one not ok line.

Maybe I hack it to keep +-2 lines surrounding the failure. (Newer
Test::More versions etc. should also make this a bit easier to debug)

Also, the remove rule only kicks in if the verbose output is more than 2
KByte. So if you have only 20 tests defined, you'll see all of it.

If the shortened output isn't enough for the author, he can always ask for
more ;) Which reminds me that I should Bcc: the author of failures...
shouldn't I?

> --
> Allen Smith                   [EMAIL PROTECTED]
> September 11, 2001            A Day That Shall Live In Infamy II
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety." - Benjamin Franklin

Too true.

Cheers,

Tels

- --
 perl -MDev::Bollocks -e'print Dev::Bollocks->rand(),"\n"'
 collaboratively innovate front-end niches

 http://bloodgate.com/perl       My current Perl projects
 PGP key available on http://bloodgate.com/tels.asc or via email

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQEVAwUBPE2xL3cLPEOTuEwVAQEB0wf9F86mhaLAft70fIZEpqcngSeA26zIJTWd
Jwc5ISH+Lx51BnceN5cYNoLdmfLUBjUwNaDS9/vvHWnJJggO3jPRsU8ZZobKkbxh
ZFCZeMOEjYeONvn0SPXuRb3rWZ1pfLYw/z60PGXyC4Ol8Rg3jq+8L6X5m+9A+TIo
fNXmKkNqqkKI98H+NyM+JcNefIlzWKScIHosfIvK0uH0lXjToyLXtHEJTKV6Ph47
EHdu9NNSkyPzBtq0FS8CW0oBTkl90ai3ubDdblLVDiGNU2hMDgM8oD0ApPk0xzne
74CG6UxB8yMjjQltl5BY7SavIXX8PAb2AEFSL04dg5oj98HdoY7tIg==
=OExH
-----END PGP SIGNATURE-----

Reply via email to