schwern/test-more — Issue #190: Put a test_number counter back into History
Author: schwern
Created: 2011-11-09 20:50:03+00:00
State: open
Labels: DO IT, Easy, History, Test-Builder2

Now that the `test_number` is attached to the Result object there's less work for an EventWatcher to do and it's more generically applicable.

Move the counter out of the TAP formatter and into the History object.

History will track the last test_number seen on a result, so others can check if an incoming result is out of order. History's accept_result will set the last number seen to the result's test_number OR increment it if it doesn't have one.

History will also track if it's seen any out of order results and hold onto a list of them.