Module Test.Log

Logging.

type 'a t = ?__POS__:loc -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a

The type for log functions. If __POS__ is specified starts by logging the position on a line before logging the format.

val msg : 'a t

msg fmt … logs a message formatted by fmt.

val pass : 'a t

pass fmt … is like log but formatted for passing. This does not increment passed assertions, use pass to do so.

val fail : 'a t

log_fail fmt … is like log but formatted for failures. This does not increment failed assertions, use fail to register a failure.

val start : 'a t

log_start is like log but does not finish the line. log_finish does.

val finish : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a

finish ends a line started with log_start.

val raw : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a

raw fmt … outputs to the test log.