@@ -42,35 +42,33 @@ call ``dune runtest`` from the shell (or the command alias ``dune test``). This
4242will run all the tests defined in the current directory and any subdirectory
4343recursively.
4444
45- Note that in any case, ``dune runtest `` is simply shorthand for building the
46- ``runtest `` alias, so you can always ask Dune to run the tests in conjunction
47- with other targets by passing ``@runtest `` to ``dune build ``. For instance:
48-
49- .. code :: console
50-
51- $ dune build @install @runtest
52- $ dune build @install @test/runtest
53-
54-
5545Running a Single Test
5646---------------------
5747
58- If you would only like to run a single test for your project, you may use `` dune
59- exec `` to run the test executable (for the sake of this example,
60- ``project/tests/myTest.ml ``):
48+ If you would only like to run a single test for your project, you may use
49+ `` dune runtest `` to run the :doc: ` test<reference/dune/test> ` executable (for
50+ the sake of this example, ``project/tests/myTest.ml ``):
6151
6252.. code :: console
6353
64- $ dune exec project/tests/myTest.exe
54+ $ dune runtest project/tests/myTest
6555
66- To run :ref: `cram-tests ` you can pass their paths to the ``dune test `` command.
56+ To run :ref: `cram-tests ` you can pass their paths to the ``dune runtest ``
57+ command.
6758
6859.. code :: console
6960
70- $ dune test tests/myCramTest.t
61+ $ dune runtest tests/myCramTest.t
7162
7263 This works both for directory and file cram tests.
7364
65+ Library stanzas with :ref: `inline tests<inline_tests> ` enabled may also be run
66+ by passing the name of the library:
67+
68+ .. code :: console
69+
70+ $ dune runtest tests/myinlinetestlib
71+
7472 Running Tests in a Directory
7573----------------------------
7674
@@ -461,6 +459,8 @@ this is only an example. We don't recommend using ``sed`` in your
461459build, as this would cause portability problems.
462460
463461
462+ .. _test_stanza :
463+
464464Custom Tests
465465============
466466
0 commit comments