Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ChrisDolan (2855)

  (email not shown publicly)

Journal of ChrisDolan (2855)

Saturday September 23, 2006
09:06 PM

Test::Harness's verbose mode considered useful

[ #31102 ]

There's a ton of discussion on TAP and test harnesses lately on the perl-qa[at] mailing list. I had my own funny harness discovery today.

I was fixing a bug in the SWF-to-FLV converter in my FLV::Info package and, along the way, added a print() to dump some binary data to the terminal. Well, of course, I forgot to remove it. Test::Harness quietly discards any cruft sent to STDOUT, so my "./Build test" didn't reveal the extraneous output.

Luckily my release-to-cpan script runs "./Build test verbose=1" so I saw the output. Or, heard it really... The output happened to contain a lot of ^G bytes, so I got a loooong series of beeps from the Mac, which is hard to stop short of killing the shell. Anyway I aborted the script and fixed the oversight before uploading to CPAN.

So my tiny bit of new wisdom to pass on: always run test verbosely at least once before you release to CPAN!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.