Is there any commonly accepted knowledge about how one should write tests
for "Test" modules that one might construct using Test::Builder? In
particular, how does one test that one of your new test fails when it
should?
I did have an idea about how nice it would be if you could call a method
i
Currently Test::Builder does not print anything
( plan, use_ok results, etc ) if $^C is true. However to test
B::C I'd like to have a way to force the output.
Reason:
#!perl
BEGIN {
print "1..2\n";
print "ok 1\n";
}
print "ok 2\n";
is failing because the
1..2
ok 1
is printed