package ounit
Unit testing framework loosely based on HUnit. It is similar to JUnit, and other XUnit testing frameworks
Install
Dune Dependency
Authors
Maintainers
Sources
ounit-2.0.8.tar.gz
sha256=2e30fe79648e928b5a9d20f83d5a1a805826c7193e821464a9e4752661ba2e0e
md5=bd12d66c9dbd95a50570bb686b0f10f5
doc/oUnit.advanced/OUnitRunner/GenericWorker/index.html
Module OUnitRunner.GenericWorker
Source
Build worker based runner.
Source
type message_from_worker =
| AckExit
| Log of OUnitTest.log_event_t
| Lock of int
| Unlock of int
| TestDone of OUnitTest.result_full * OUnitTest.result_list
Source
val main_worker_loop :
(int, unit -> unit) Hashtbl.t ->
(unit -> 'a) ->
(message_from_worker, message_to_worker) channel ->
string ->
(OUnitTest.path * 'b * (OUnitTest.ctxt -> 'c)) MapPath.t ->
bool ->
unit
Source
type 'a worker = {
channel : (message_to_worker, message_from_worker) channel;
close_worker : unit -> string option;
select_fd : 'a;
shard_id : string;
is_running : unit -> bool;
}
Source
val runner :
((int, unit -> unit) Hashtbl.t ->
(MapPath.key * OUnitTest.test_length * OUnitTest.test_fun) MapPath.t ->
string ->
string ->
bool ->
'a worker) ->
('a worker list -> float -> 'a worker list) ->
(int, unit -> unit) Hashtbl.t ->
(OUnitTest.path, OUnitTest.result) OUnitLogger.logger ->
OUnitChooser.chooser ->
(OUnitTest.path * OUnitTest.test_length * OUnitTest.test_fun) list ->
OUnitTest.result_full list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>