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/OUnitTest/index.html
Module OUnitTest
Source
See OUnit.mli.
See OUnit2.mli.
Source
type result =
| RSuccess
| RFailure of string * OUnitLogger.position option * backtrace
| RError of string * backtrace
| RSkip of string
| RTodo of string
| RTimeout of test_length
See OUnit.mli.
Source
type ctxt = {
conf : OUnitConf.conf;
logger : (path, result) OUnitLogger.logger;
path : path;
test_logger : result OUnitLogger.Test.t;
mutable tear_down : (ctxt -> unit) list;
tear_down_mutex : OUnitShared.Mutex.t;
non_fatal : result_full list ref;
non_fatal_mutex : OUnitShared.Mutex.t;
}
Source
type test =
| TestCase of test_length * test_fun
| TestList of test list
| TestLabel of string * test
Isolate a function inside a context. All the added tear down will run before returning.
Source
val with_ctxt :
OUnitConf.conf ->
(path, result) OUnitLogger.logger ->
OUnitShared.shared ->
result_full list ref ->
path ->
(ctxt -> 'a) ->
'a
Create a context and run the function.
Transform an exception in a result.
Isolate a function inside a context, just as !section_ctxt
but don't propagate a failure, register it for later.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>