Created
August 10, 2016 14:56
-
-
Save exodist/d5cff991b5fd0591485580075b6a798a to your computer and use it in GitHub Desktop.
no diag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Test2::Bundle::Extended; | |
use Test2::API qw/test2_stack/; | |
test2_stack->top->filter( | |
sub { | |
my ($hub, $event) = @_; | |
return if $event->isa('Test2::Event::Diag'); | |
return $event; | |
}, | |
inherit => 1, | |
); | |
ok(0, "See failure, but not the diag"); | |
diag "Will not see this" | |
done_testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment