package ppx_inline_test
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=38196081de2fab8321b71addbe769b73
sha512=e5c2dc8e519bbdadb5b1472ee5c5d08c547395e46c294962f1ac830461bb2d30d16894395ba95866713a099ef3565d83e67dda48d6ed26b55ad7cb36a8f7f6aa
doc/ppx_inline_test.runtime-lib/Ppx_inline_test_lib/index.html
Module Ppx_inline_test_libSource
am_running 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.
`Am_test_runner means the ./inline_tests_runner process, whereas `Am_child_of_test_runner means a process descended from the test runner.
The tests to run are configured by command line arguments, normally pulled from Sys.argv. Calling init will re-configure the test runner using the passed-in argument list. This is useful to run tests in a dynamically loaded library; this should be called with the appropriate configuration before loading the library.
init will normally return None. It will return an error if there's a formatting error in the arguments, and will return Some string if help was requested. It will also return an error if the test runner has already initialized, either by reading command-line arguments or by a previous call to init.