package alcotest
Alcotest is a lightweight and colourful test framework
Install
Dune Dependency
Authors
Maintainers
Sources
alcotest-js-1.5.0.tbz
sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c
sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45
doc/src/alcotest.engine/cli_intf.ml.html
Source file cli_intf.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
(* * Copyright (c) 2013-2016 Thomas Gazagnaire <thomas@gazagnaire.org> * Copyright (c) 2019 Craig Ferguson <me@craigfe.io> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *) open! Import module V1_types = struct module type S = sig include Core.V1.S (** @inline *) val run : (?argv:string array -> string -> unit test list -> return) with_options (** [run n t] runs the test suite [t]. [n] is the name of the tested library. The optional argument [and_exit] controls what happens when the function ends. By default, [and_exit] is set, which makes the function exit with [0] if everything is fine or [1] if there is an issue. If [and_exit] is [false], then the function raises [Test_error] on error. The optional argument [argv] specifies command line arguments sent to alcotest like ["--json"], ["--verbose"], etc. Note that this array will be treated like a regular [Sys.argv], so the array must have at least one element, and the first element will be treated as if it was the command name and thus ignored for the purposes of option processing. So [~argv:\[||\]] is an error, [~argv:\[| "--verbose" |\]] will have no effect, and [~argv:\[| "ignored"; "--verbose" |\]] will successfully pass the verbose option. *) val run_with_args : (?argv:string array -> string -> 'a Cmdliner.Term.t -> 'a test list -> return) with_options (** [run_with_args n a t] Similar to [run a t] but take an extra argument [a]. Every test function will receive as argument the evaluation of the [Cmdliner] term [a]: this is useful to configure the test behaviors using the CLI. *) end module type MAKER = functor (P : Platform.MAKER) (M : Monad.S) -> S with type return = unit M.t end module type Cli = sig module V1 : sig module type S = V1_types.S module type MAKER = V1_types.MAKER module Make (P : Platform.MAKER) (M : Monad.S) : V1_types.S with type return = unit M.t end end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>