package ppx_expect

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Configuration for running expect tests

To configure expect_test, add the following at the top of your .ml file, or in some import.ml:

module Expect_test_config = struct
  include Expect_test_config
  let pre_redirect_hook () = ...
end

Note that since all expect test are also inline tests, the inline test configuration also applies to all expect test.

module type S = sig ... end
include S with type 'a IO.t = 'a
module IO : sig ... end

IO monad

val flush : unit -> unit IO.t

Flush whatever need to be to get pending output out on file descriptor 0.

val run : (unit -> unit IO.t) -> unit

Run an IO operation until completion

OCaml

Innovation. Community. Security.