package ounit2
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OUnit testing framework
Install
dune-project
Dependency
Authors
Maintainers
Sources
ounit-2.2.6.tbz
sha256=0690fb1e0e90a18eed5c3566b3cc1825d98b0e8c7d51bb6b846c95c45a615913
sha512=d7cb36a1fe245d02afab606cd1ee755a178ee4cb18fbbfec1df32baa88fa90ef6c9a50d9fd5bde46c7fd9c481f2debe4bafac75c4e3bdfbdb63fc18b0ccce3cc
doc/ounit2.advanced/OUnitState/index.html
Module OUnitState
Manipulate 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| Finished
type '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 health_check_interval : float OUnitConf.varval create :
OUnitConf.conf ->
OUnitChooser.chooser ->
(OUnitTest.path * OUnitTest.test_length * OUnitTest.test_fun) list ->
'a tval maybe_dump_cache : OUnitConf.conf -> 'a t -> '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 count_worker : 'a t -> intval count_tests_running : 'a t -> intval get_workers : 'a t -> 'a listval get_idle_workers : 'a t -> 'a listval is_idle_worker : 'a -> 'a t -> boolval get_tests_running : 'a t -> OUnitTest.path listval next_test_case :
OUnitConf.conf ->
(OUnitTest.path, OUnitTest.result) OUnitLogger.logger ->
'a t ->
'a next_test_case_t * 'a tval get_results : 'a t -> OUnitTest.result_full listGet all the results.
val get_worker_need_health_check : 'a t -> (OUnitTest.path option * 'a) listGet all the workers that need to be checked for their health.
val update_test_activity : OUnitTest.path -> 'a t -> 'a tUpdate the activity of a worker, this postpone the next health check.
val get_worker_timed_out :
'a t ->
(OUnitTest.path * OUnitTest.test_length * 'a) listGet all the workers that are timed out, i.e. that need to be stopped.
val timeout : 'a t -> floatCompute when is the next time, we should either run health check or timeout a test.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>