Tezt_wrapper
Wrapper around Tezt to declare test dependencies.
include module type of Tezt
module Uses : sig ... end
Test dependencies.
module Test : sig ... end
module Regression : sig ... end
Error modes.
Ignore
: do not warn, do not fail.Warn
: warn, but do not fail.Fail
: output an error and fail the test.val error_mode_for_missing_use : error_mode Stdlib.ref
What to do if a test uses something without having it declared in its ~uses
.
Recommended setting for tests that are intended to run in the CI is Fail
, which is the default.
val error_mode_for_useless_use : error_mode Stdlib.ref
What to do if a test declares something in its ~uses
and does not use it.
Recommended setting for tests that are intended to run in the CI is Warn
, which is the default.
Using Fail
is possible but:
Uses.path
is always called anyway;Uses.path
, the wrapper will not be able to detect it, so one will have to call Uses.path
just to suppress the error.val error_mode_for_non_existing_use : error_mode Stdlib.ref
What to do if a test declares a ~uses
with a path that does not exist.
Recommended setting is Fail
, which is the default.