in reply to No plan "weakens" my Test scripts?
If you run that with the harness as in PERL_DL_NONLAZY=1 perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" test.pl it will happily reportuse Test::More qw(no_plan); ok(1); # CRASH!! exit(0); ok(2);
because it doesn't know better. If you had specified the desired outcome, as inAll tests successful. Files=1, Tests=1
the test script would have reporteduse Test::More tests => 2;
and the harness would have failed, allowing you to catch the bug while it goes unnoticed otherwise.# Looks like you planned 2 tests but only ran 1.
|
|---|