Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Simple CPAN distribution.

Report information
The Basics
Id: 8387
Status: resolved
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: schwern [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Option for T::B to run without history.
Sometimes tests run continuously. Any sort of runtime testing will have this nature. To avoid memory starvation in these cases, provide an option to not store a history of all tests.
On Thu Nov 11 23:30:50 2004, MSCHWERN wrote: Show quoted text
> Sometimes tests run continuously. Any sort of runtime testing will > have this nature. To avoid memory starvation in these cases, provide > an option to not store a history of all tests.
It would actually be awesome if I could get this--I ran into a situation where I need it. I have a test script that does about 30 million tests (because it's testing a bunch of combinations of things) that would be a bit tough to split up into multiple tests. Right now it's exhausting memory because of Builder's history. (Took me all of today to figure out where the memory was going.)
This is coming with Test::Builder2. Test::Builder in the Test-Builder2 branch already has the ability to turn history off via $builder->{History}->should_keep_history(0). The details of that will probably change, you'll probably instead create a TB2::NoHistory object and plug it into $builder->history(), but the feature will be there in some form. I'm closing out this ticket because its no longer necessary as a TODO list. You can follow individual bits here: http://github.com/schwern/test-more/issues/labels/Test-Builder2#issue/45 http://github.com/schwern/test-more/issues/labels/Test-Builder2#issue/46 Test::Builder2 is available at http://github.com/schwern/test-more/tree/Test-Builder2 There will be an alpha release before October.