OUnitStateSourceManipulate the state of OUnit runner.
type 'worker next_test_case_t = | Not_enough_worker| Try_again| Next_test_case of OUnitTest.path * OUnitTest.test_fun * 'worker| Finishedtype 'worker test_running = {test_length : OUnitTest.test_length;deadline : time;next_health_check : time;worker : 'worker;}type 'worker t = {tests_planned : (OUnitTest.path * (OUnitTest.test_length * OUnitTest.test_fun))
list;tests_running : (OUnitTest.path * 'worker test_running) list;tests_passed : (OUnitTest.result_full * OUnitTest.result_list) list;idle_workers : 'worker list;chooser : OUnitChooser.chooser;cache : OUnitCache.cache;health_check_interval : time;}val create :
OUnitConf.conf ->
OUnitChooser.chooser ->
(OUnitTest.path * OUnitTest.test_length * OUnitTest.test_fun) list ->
'a tval add_test_results :
OUnitConf.conf ->
(OUnitTest.result_full * OUnitTest.result_list) ->
'a t ->
'a tval test_finished :
OUnitConf.conf ->
(OUnitTest.result_full * OUnitTest.result_list) ->
'a ->
'a t ->
'a tval next_test_case :
OUnitConf.conf ->
(OUnitTest.path, OUnitTest.result) OUnitLogger.logger ->
'a t ->
'a next_test_case_t * 'a tGet all the results.
Get all the workers that need to be checked for their health.
Update the activity of a worker, this postpone the next health check.
Get all the workers that are timed out, i.e. that need to be stopped.