Closed schwernbot closed 10 years ago
From: @schwern Date: Sunday Jan 09, 2011 at 11:27 GMT Orig: https://github.com/Test-More/test-more/issues/55#issuecomment-664117
DESTROY is a no go. It appears that during global destruction we can't rely on orderly destruction and bits of TB2 are missing by the time it happens.
At the moment it's done in an END block by TB2::Module on the singleton. That seems sensible as in other situations you'll have access to the object itself.
It still may be useful to put it in TB2->DESTROY but I'll wait until there's a use case.
From: @schwern Date: Thursday Sep 09, 2010 at 00:35 GMT Orig: https://github.com/Test-More/test-more/issues/55
Right now, nothing calls the TB2->stream_end event. You have to call it manually.
It should be called by done_testing().
It should probably be called on DESTROY, configurable, and only if the stream started.