1QTEST(1) User Commands QTEST(1)
2
3
4
6 qtest - Inline (Unit) Tests for OCaml
7
9 USAGE: qtest [options] extract <file.mli?>...
10
11 OPTIONS:
12 -o
13
14 --output
15 <path> (default: standard output) Open or create a file for
16 output; the resulting file will be an OCaml source file contain‐
17 ing all the tests
18
19 -p
20
21 --preamble
22 <string> (default: empty) Add code to the tests preamble; typ‐
23 ically this will be an instruction of the form 'open Module'
24
25 --preamble-file
26 <path> Add the contents of the given file to the tests preamble
27
28 --run-only
29 <function name> Only generate tests pertaining to this function,
30 as indicated by the test header
31
32 --shuffle
33 (default: turned off) Toggle test execution order randomisation;
34 submodules using injection are not shuffled
35
36 --quiet
37 (default: turned off) Suppress output on stderr
38
39 -help Display this list of options
40
41 --help Display this list of options
42
43
44
45qtest 2.11.2 July 2023 QTEST(1)