schwern/test-more — pull request #290 by SineSwiper (2012-04-24 18:00:44+00:00)
Title: subtest should auto-note at the beginning of the test

Currently, following the path of a subtest within direct mode (non-harness) can be a tad confusing. For example, take this:

ok 2 - MANIFEST
1..8
ok 1 - Standard stuff at the beginning
ok 2 - NAME
ok 3 - AUTHOR
ok 4 - VERSION_FROM
ok 5 - ABSTRACT_FROM
not ok 6 - LICENSE
# Failed test 'LICENSE'
# at t\test-dist.t line 661.
# blah, blah, blah......

At first glance, you think "Hmpf, looks like something within MANIFEST failed.", but you'd be wrong. The subtest result doesn't give you the super description until AFTER the sub has completed. The change here will put in an auto-note to give a quick reference of the issue:

ok 2 - MANIFEST
# SUBTEST: Build.PL ==>
1..8
ok 1 - Standard stuff at the beginning
ok 2 - NAME
ok 3 - AUTHOR
ok 4 - VERSION_FROM
ok 5 - ABSTRACT_FROM
not ok 6 - LICENSE
# Failed test 'LICENSE'
# at t\test-dist.t line 661.
# blah, blah, blah......

Now you know, without having to scroll past all of the Failed test debug data, that this subtest block is actually referencing Build.PL, not MANIFEST.