package cucumber

  1. Overview
  2. Docs

A type representing the outcome of a user run step defintion.

type t =
  1. | Pass
  2. | Fail
  3. | Pending
  4. | Undefined
  5. | Skip
val string_of_outcome : t -> string

Pretty print a string of the outcome.

This will be:

  • . -> Pass
  • "F" -> Fail
  • "P" -> Pending
  • "U" -> Undefined
  • "-" -> Skip
val string_of_outcomes : t list -> string

Pretty print t list as a string.

val count_outcome : t -> t list -> int
val count_failed : t list -> int
val count_undefined : t list -> int
val count_skipped : t list -> int
val count_pending : t list -> int
val count_passed : t list -> int
val print_outcomes : t list -> unit
val exit_status : t list -> int

Calculate the exit status based on the list of outcomes.

If any are other than Pass, the exit status returned is non-zero

OCaml

Innovation. Community. Security.