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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: Test::Harness ouput change (Score:1)
While we are on the topic of Test::Harness output, a change that I'd like to see is padding of the test number so that test comments are aligned.
For example consider the following trimmed down test program and output:
Re: (Score:2)
I like this thought because things which improves comprehension are good, but there are a couple of issues here. First, many test descriptions (what you're referring to as a comment), are often close to the width of whatever terminal I'm working with, so pushing them out even further may be problematic. Second, since we don't always know up front how many tests will be run, we won't know what padding would be needed.
However, rather than a specific solution like this, how about a more general one?
Re: Test::Harness ouput change (Score:1)
You could generate a test message with this format and try to parse it and see that the parts all where you expected them. (Should the parts be randomly generated so the user can’t fool you?) If that fails you tell the user that their format is no good and bail.
Reply to This
Parent
Re: (Score:1)
Ah, no, there is a simpler way, which is to try twice, with messages that differ in all parts.