This test generates documentation using odoc for a library: $ dune build @doc This test if `.odocl` files are generated $ find _build/default/_doc/_odocls -name '*.odocl' | sort -n _build/default/_doc/_odocls/bar/bar.odocl _build/default/_doc/_odocls/bar/page-index.odocl _build/default/_doc/_odocls/foo/foo.odocl _build/default/_doc/_odocls/foo/foo2.odocl _build/default/_doc/_odocls/foo/foo_byte.odocl _build/default/_doc/_odocls/foo/page-index.odocl $ dune runtest index

OCaml package documentation

  1. bar
  2. foo
$ dune build @foo-mld {0 foo index} {1 Library foo} This library exposes the following toplevel modules: {!modules:Foo Foo2} {1 Library foo.byte} The entry point of this library is the module: {!module-Foo_byte}. $ dune build @bar-mld {0 bar index} {1 Library bar} The entry point of this library is the module: {!module-Bar}.