package expect

  1. Overview
  2. Docs
Simple implementation of 'expect' to help building unitary testing of interactive program

Install

Dune Dependency

Authors

Maintainers

Sources

expect-0.1.0.tbz
sha256=25465f78cff8ba44e85cafdff053b9a30320269c2bbb851d2b34d855d6464cc1
sha512=4f4567812afb9ef611749b5256550c05b1ec03c3910e9a3336ec4dec54156b4596acb27143c758e1ebd035398412cd21a0b90c7c4559c0ad57e91355d24a273a

Description

You can match the question using a regular expression or a timeout.

See the Expect manual for more information: http://expect.nist.gov/

Published: 08 Jan 2025

README

Expect - expect-like framework

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.

Installation

The recommended way to install expect is via the [opam package manager][opam]:

$ opam install expect

Documentation

API documentation is available online.

Dependencies (5)

  1. ocaml >= "4.14"
  2. batteries >= "3.8.0"
  3. re >= "1.12.0"
  4. base-unix
  5. dune >= "2.9"

Dev Dependencies (2)

  1. odoc with-doc
  2. ounit2 >= "2.0.0" & with-test

Used by (1)

  1. oasis < "0.3.0"

Conflicts

None

OCaml

Innovation. Community. Security.