Skip to content

Commit 1548921

Browse files
authored
Merge branch 'develop' into 817-automatically-perform-module-purge-before-building-tests
2 parents a9e3efb + 0dd8ab7 commit 1548921

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

docs/tests/suites.rst

+21-18
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,31 @@ project.
2525
Two Ways of Organizing Suites
2626
-----------------------------
2727

28-
All test suites reside in the `suites` directory under one of the user's configuration directories.
29-
There are two ways of organizing these suites, depending on the user's needs and the complexity of
30-
the suite:
28+
All test suites reside in the ``suites`` directory under one of the user's configuration
29+
directories. There are two ways of organizing these suites, depending on the user's needs and the
30+
complexity of the suite:
3131

32-
1. A simple suite may consist of a single suite config, `<suite_name>.yaml`, placed directly in the
33-
`suites` directory.
32+
1. A simple suite may consist of a single suite config, ``<suite_name>.yaml``, placed directly in
33+
the ``suites`` directory. This method is useful for tests that do not require source code or other
34+
files.
3435

3536
2. Suites consisting of multiple files, including additional configs and test source, should be
36-
placed under a subdirectory of `suites`, `suites/<suite_name>/`.
37+
placed under a subdirectory of ``suites``, ``suites/<suite_name>/``.
3738

3839
In the latter case, arbitrary files may be placed in the subdirectory, but it **must** contain a
39-
suite config named `suite.yaml`. In both cases, the suite config follows the format described in
40-
the previous section. Note the difference in file name between the two organization methods: in the
40+
suite config named ``suite.yaml``. In both cases, the suite config follows the format described in
41+
the Test Format section. Note the difference in file name between the two organization methods: in the
4142
first, the name of the file is the name of the suite; in the second, the file name is the generic
42-
`suite.yaml`, and Pavilion derives the suite name from its containing directory.
43+
``suite.yaml``, and Pavilion derives the suite name from its containing directory.
4344

4445
.. admonition:: Deprecation Warning
4546
:class: warning
4647

47-
Pavilion 2.4 uses the `tests` and `test_src` subdirectories to store suite configs and test
48-
source code respectively. As of the latest release, these directories are deprecated in favor
49-
of the single `suites` directory, and support for them will eventually be removed.
48+
Pavilion previously used the ``tests`` and ``test_src`` subdirectories to store suite configs
49+
and test source code. These directories are now deprecated in favor of the single
50+
``suites`` directory, and support for them is planned for eventual removal. While the older
51+
organization structure continues to be supported, users should plan on reorganizing existing
52+
tests using the new structure.
5053

5154
.. _tests.suites.auxiliary_configs:
5255

@@ -58,15 +61,15 @@ respective subdirectories under the user's config directory and must be named wi
5861
their associated host, operating system, or mode.
5962

6063
When using the second, suite directory method of organization, auxiliary configs must be placed
61-
in the suite directory alongside the suite config and must be named `hosts.yaml`, `os.yaml`, or
62-
`modes.yaml` according to their config type. **Note that these file names are plural**. These
63-
configs override configs placed in the `hosts`, `os`, and `modes` subdirectories under the
64+
in the suite directory alongside the suite config and must be named ``hosts.yaml``, ``os.yaml``, or
65+
``modes.yaml`` according to their config type. **Note that these file names are plural**. These
66+
configs override configs placed in the ``hosts``, ``os``, and ``modes`` subdirectories under the
6467
configuration directories.
6568

6669
The suite directory method of organization allows for more flexibility in these auxiliary configs.
6770
Specifically, multiple hosts, OSs, or modes may be specified in a config file. A single host, OS,
6871
or mode can be selected on test invocation by passing the name of the host, OS, or mode to the
69-
appropriate flag (either `-H`, `-o`, or `-m`). The following is an example of a host file
72+
appropriate flag (either ``-H``, ``-o``, or ``-m``). The following is an example of a host file
7073
containing multiple host entries (OS and mode formats are analogous):
7174

7275
.. code-block:: yaml
@@ -81,6 +84,6 @@ containing multiple host entries (OS and mode formats are analogous):
8184
variables:
8285
foo: bar
8386
84-
Note that this format differs from the format used by configs located in the `hosts`, `os`, and
85-
`modes` directories; in this case, individual configs within each config file derive their names
87+
Note that this format differs from the format used by configs located in the ``hosts``, ``os``, and
88+
``modes`` directories; in this case, individual configs within each config file derive their names
8689
from top-level keys rather than from the name of the config file.

0 commit comments

Comments
 (0)