package octez-libs
include module type of Tezt.Regression
Regression test helpers (run tests, capture output, etc).
Capture some output of a regression test.
Call this to record a string into the expected output file of the current test. A newline character \n
will be added after it if eol
is true
(which is the default).
This function only records its argument when called while a regression test is running, i.e. from the body of Regression.register
. If you call it outside of Regression.register
, it has no effect. So you can define a function that captures and use it with or without regression testing.
A typical use is to define custom process hooks that substitute non-deterministic parts of the output with deterministic ones. See also hooks
.
val hooks : Tezt_core.Process_hooks.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>