仅在测试中报告失败测试::更多
答
您可以使用fail
例程。在任何Test :: More代码之外进行检查,并使用该结果来决定是否输出测试消息。
foreach my $element (@randomly_generated_data) {
my $result = ...; # your checks here
next if $result;
fail('Some message');
}