package alcotest
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c
sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45
doc/alcotest.engine/Alcotest_engine/V1/Core/Make/argument-1-P/index.html
Parameter Make.P
Parameters
Signature
time () returns the current timestamp, used to measure the duration of a testrun.
Return true if standard output refers to a terminal or console window, false otherwise.
stdout_columns () is the current width of stdout in columns, or None if no width can be determined (e.g. stdout is not a TTY).
val setup_std_outputs :
?style_renderer:Fmt.style_renderer ->
?utf_8:bool ->
unit ->
unitsetup_std_outputs ~style_renderer ~utf_8 () is called at startup of alcotest and sets up the standard streams for colored output.
Whether or not the test runner should trap test logs. The following functions are used iff this is set to true.
prepare ~root ~uuid ~name is called before test suite execution.
rootis the directory used for log capturing;uuidis the unique test execution ID;nameis the suite name.
val open_write_only : string -> file_descriptorval close : file_descriptor -> unitval with_redirect : file_descriptor -> (unit -> 'a M.t) -> 'a M.twith_redirect fd f is called for each test. On Unix, it deals with redirection of standard streams to the fd.
val home_directory : unit -> (string, [ `Msg of string ]) resulthome_directory () is the current user's HOME directory, if it exists.