Note
This library hasn't received a lot of udpates recently and is kept mostly
for backward compatibility. The original author is not planning to add features
or make significant updates. There is an alternative
MDX which
is integrated in dune and is more focused on comparing output for testing.
This is a simple implementation of expect to help building unitary testing
of interactive program.
It helps to receive question and send answers from an interactive process. You can match the question using a regular expression (Str). You can also use a timeout to ensure that the process answer in time.
See the Expect manual for more information and example.
The recommended way to install expect is via the [opam package manager][opam]:
$ opam install expectAPI documentation is available online.