Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • 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:

    use Test::More tests => 11;

    for (1 .. 11) {
        is(1, 1, 'This is a comment');
    }

    __END__

    perl output1.t
    1..11
    ok 1 - This is a comment
    ok 2 - This is a comment
    ok 3 - This is a comment
    ok 4 - This is a comment
    ok 5 - This is a comment
    ok 6 - This is a comment
    ok 7 - This is a comment
    ok

    • 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?

      prove -r