← All repos

ppx_inline_test

Syntax extension for writing in-line tests in ocaml code

Browse cluster: OCaml incremental computation and PPX tooling
149commits
10contributors
9languages

Tech stack & purpose

ppx_inline_test is a syntax extension for the OCaml programming language that enables developers to write inline tests directly within their code using special syntactic constructs like `let%test`, `let%test_unit`, and `module%test`. The extension supports flexible test organization through named and anonymous tests, test grouping in modules, and a tagging system to control which tests run in different environments (such as JavaScript, 32-bit or 64-bit architectures, or with specific compiler optimizations). Tests can be built and executed using either Dune or manual compilation with the `ppx_inline_test.runtime-lib` and `ppx_inline_test.runner.lib` libraries, with options for filtering tests by location or tag, running them verbosely, and parallelizing execution across source files.

Languages

OCaml
90.0%
Raku
8.3%
MDX
0.5%
Makefile
0.4%
WebAssembly
0.3%
Shell
0.1%
C
0.1%
JavaScript
0.1%
Dune
0.0%

Contributors