You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than have a flag saying whether to keep history or not, have a subclass of History that does not store individual results.
It can keep summary information as long as that summary consumes O(1) memory. is_passing(), for example, and perhaps a summary of the number of tests which passed, failed, seen, etc...
It will throw an exception if you ask for information it does not have, like results() and summary().
For bonus points, allow a NoHistory object to be generated from a History object. That would summarize and store the current historical state for continuity.
The text was updated successfully, but these errors were encountered:
HistoryStack now has a consume method that will take a list of history objects (currently only HistoryStack's) and replay the history in the consuming object.
Rather than have a flag saying whether to keep history or not, have a subclass of History that does not store individual results.
It can keep summary information as long as that summary consumes O(1) memory. is_passing(), for example, and perhaps a summary of the number of tests which passed, failed, seen, etc...
It will throw an exception if you ask for information it does not have, like results() and summary().
For bonus points, allow a NoHistory object to be generated from a History object. That would summarize and store the current historical state for continuity.
The text was updated successfully, but these errors were encountered: