Skip to content

Instantly share code, notes, and snippets.

@exodist
Created August 10, 2016 14:56
Show Gist options
  • Save exodist/d5cff991b5fd0591485580075b6a798a to your computer and use it in GitHub Desktop.
Save exodist/d5cff991b5fd0591485580075b6a798a to your computer and use it in GitHub Desktop.
no diag
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