diff --git a/doc/manual.org b/doc/manual.org index ee1a3415..6e4cd432 100644 --- a/doc/manual.org +++ b/doc/manual.org @@ -559,7 +559,7 @@ The syntax is as follows: == is an alias name such as =runtest=. -== specifies the dependencies of the rule. See the +== specifies the dependencies of the alias. See the [[Dependency specification][dependency specification section]] for more details. @@ -568,10 +568,10 @@ The syntax is as follows: - ==, an action to run when constructing the alias. See the [[User actions][actions section]] for more details. -- =(package )=. If there are no ambiguities, you can omit this - field. Otherwise you need it to specify which package this alias is a part of. - The package is not ambiguous when the first parent directory to contain a - =.opam= file contains exactly one =.opam= file +- =(package )= indicates that this alias stanza is part of + package == and should be filtered out if == is filtered + out from the command line, either with =--only-packages = or + =-p = The typical use of the =alias= stanza is to define tests: @@ -583,6 +583,11 @@ The typical use of the =alias= stanza is to define tests: See the [[Running tests][section about running tests]] for details. +Note that if your project contains several packages and you run test +the tests from the opam file using a =build-test= field, then all your +=runtest= alias stanzas should have a =(package ...)= field in order +to partition the set of tests. + **** install The =install= stanza is what lets you describe what Jbuilder should