Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add easy ways to turn on event storage #315

Closed
schwern opened this Issue · 1 comment

1 participant

@schwern
Owner

#198 made Test::Builder stop storing events by default to conserve memory. Right now it's a PITA to turn event storage on.

use Test::Builder;
use TB2::History;

my $Test = Test::Builder->new;
my $history = TB2::History->new( store_events => 1 );
$Test->test_state->ec->history($history);

Make it convenient to turn them back on again both in Test::Builder::Module and Test::Builder.

use Test::More store_events => 1;

Test::Builder->new( store_events => 1 );

Keep in mind that event storage must be turned on before any tests or events (ie. the plan) is run.

@schwern
Owner

c3ee922 adds the ability to turn storage on in import and via Test::Builder directly. That should do it.

@schwern schwern closed this
@schwernbot schwernbot referenced this issue in Test-More/TB2
Closed

Add easy ways to turn on event storage #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.