in reply to Test::More test names?

The names only print out if you use "verbose" mode. See the "-v" flag for prove, the description of the HARNESS_VERBOSE environment flag in Test::Harness and ways to set that automatically with Module::Build and ExtUtils::MakeMaker.

As a side note, you may want to write your test like this:

foreach (@items) { ... a lot of perl code ... unless (some condition) { $err = "Splunk is missing from Foobar"; } } ok(! $err,"Fancy code") or diag $err;

Using pass and fail is generally a more tedious way to work with Test::More.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^2: Test::More test names?
by philcrow (Priest) on Nov 08, 2005 at 18:29 UTC
    The names also print if you run one test at a time:
    make; perl -I blib/lib t/test_name.t
    Not only do you see the names of the tests, but you save time if your suite takes a long time and only one or two test files have failing tests.

    Phil