We don't bite newbies here... much | |
PerlMonks |
Re^2: Inverting test conditions in Test::More ? (workaround)by LanX (Saint) |
on Jul 24, 2020 at 11:06 UTC ( [id://11119747]=note: print w/replies, xml ) | Need Help?? |
Thanks, finally someone accepting my question! :) > There doesn't seem to be a simple, generic way to negate an arbitrary test in Test::More AFAICT. I just realized that all tests return a boolean result. So here a workaround:
The TODO block ensures that there is no failed test in the final result. But I still need to understand how to make the output of the failed inner test silent ... ° ... I probably need to redirect the STDERR output of Test::Builder or fiddle with TAP altogether
Cheers Rolf °) Hmm... probably with subtests...
In Section
Seekers of Perl Wisdom
|
|