Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Alcotest_lwt
enables testing functions which return an Lwt promise. run
returns a promise that runs the tests when scheduled, catching any asynchronous exceptions thrown by the tests.
include Alcotest_engine.Cli.S with type return = unit Lwt.t
type return = unit Lwt.t
type !'a test_case = string * speed_level * ('a -> return)
type !'a test = string * 'a test_case list
val run :
(?argv:string array -> string -> unit test list -> return) with_options
val run_with_args :
(?argv:string array ->
string ->
'a Cmdliner.Term.t ->
'a test list ->
return)
with_options
val test_case :
string ->
Alcotest.speed_level ->
(Lwt_switch.t -> 'a -> unit Lwt.t) ->
'a test_case
val test_case_sync :
string ->
Alcotest.speed_level ->
('a -> unit) ->
'a test_case