package ppx_inline_test
Syntax extension for writing in-line tests in ocaml code
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_inline_test-v0.13.1.tbz
sha256=e75c9df9b33e20655fd2f728df5e332794bdd9a2f5a62fc08e44fb6ca1beda6c
sha512=402e4d6113368da37464d64ae145f5a58af751275bb92d4a4bdd16f41fbada9311ca9f8da7aeb86537bdf25710fcb1df3cd983717935f1cd5ca663f27aaa3b6b
doc/ppx_inline_test.runtime-lib/Ppx_inline_test_lib/Runtime/index.html
Module Ppx_inline_test_lib.Runtime
module Test_result : sig ... end
type config = (module Inline_test_config.S)
type 'a test_function_args =
config:config ->
descr:string ->
tags:string list ->
filename:string ->
line_number:int ->
start_pos:int ->
end_pos:int ->
'a
val test : ((unit -> bool) -> unit) test_function_args
val test_unit : ((unit -> unit) -> unit) test_function_args
val test_module : ((unit -> unit) -> unit) test_function_args
val summarize : unit -> Test_result.t
These values are meant to be used inside a user's tests.
`Am_test_runner
means the ./inline_tests_runner
process, whereas `Am_child_of_test_runner
means a process descended from the test runner.
am_running_inline_test
is true
if the code is running inline tests (e.g. let%expect_test
, let%test
, let%test_unit
) or is in an executable invoked from inline tests.
val add_evaluator : f:(unit -> Test_result.t) -> unit
Record an evaluator for an external set of tests
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>