Skip to content

Commit 175bfa8

Browse files
NaddiNadjasafl
authored andcommitted
fix(docs): add links to referenced packages and scripts
Signed-off-by: Nadja Brix Koch <[email protected]>
1 parent 4efb959 commit 175bfa8

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

docs/source/testrunner/index.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Testrunner
55
============
66

77
**cijoe** provides a test runner implemented as a :pytest:`pytest <>` plugin,
8-
wrapped in a **cijoe** script named ``core.testrunner``. The plugin is included
9-
with the **cijoe** package, but to use it, you must ensure that :pytest:`pytest
10-
<>` has access to the rest of the **cijoe** virtual environment (venv) and that
11-
the ``pytest`` command-line tool is available.
8+
wrapped in a **cijoe** script named :ref:`core.testrunner <sec-packages-core-testrunner>`.
9+
The plugin is included with the **cijoe** package, but to use it, you must ensure
10+
that :pytest:`pytest<>` has access to the rest of the **cijoe** virtual
11+
environment (venv) and that the ``pytest`` command-line tool is available.
1212

1313
This can be easily achieved by using **pipx** to install **cijoe** with its
1414
dependencies:
@@ -21,8 +21,8 @@ The test runner can be used in two main ways:
2121

2222
1. Directly via the :pytest:`pytest <>` command-line: ``pytest --config cijoe-config.toml``
2323

24-
2. Via a **cijoe** workflow, with a step using the ``core.testrunner``,
25-
executed through the ``cijoe`` command-line tool.
24+
2. Via a **cijoe** workflow, with a step using the :ref:`core.testrunner
25+
<sec-packages-core-testrunner>`, executed through the ``cijoe`` command-line tool.
2626

2727
While the first method may be more familiar and require no further explanation,
2828
the test runner was specifically designed to be used within a **cijoe**
@@ -43,8 +43,8 @@ essential differences.
4343
Usage
4444
=====
4545

46-
In a :ref:`workflow <sec-resources-workflows>` the ``core.testrunner`` is
47-
inserted as a step with arguments like below:
46+
In a :ref:`workflow <sec-resources-workflows>` the :ref:`core.testrunner
47+
<sec-packages-core-testrunner>` is inserted as a step with arguments like below:
4848

4949
.. code-block:: yaml
5050
@@ -69,9 +69,9 @@ args
6969
-k "filtering" my_tests
7070
7171
The key difference between invoking the ``pytest`` command-line tool directly
72-
and using the **cijoe** script ``core.testrunner`` in the **cijoe** workflow is
73-
that the latter integrates the **pytest** report into **cijoe**, producing a
74-
cohesive and standalone report.
72+
and using the **cijoe** script :ref:`core.testrunner <sec-packages-core-testrunner>`
73+
in the **cijoe** workflow is that the latter integrates the **pytest** report into
74+
**cijoe**, producing a cohesive and standalone report.
7575

7676
random_order
7777
This option **scrambles** the order in which tests are executed. It is

docs/source/usage/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ manner:
2929

3030
* ``cijoe --example qemu``
3131

32-
- Producing example resources for the qemu package
32+
- Producing example resources for the :ref:`qemu package <sec-packages-qemu>`
3333

3434
* ``cijoe --example linux``
3535

36-
- Producing example resources for the Linux package
36+
- Producing example resources for the :ref:`Linux package <sec-packages-linux>`
3737

3838
The following sections describe the use of :ref:`sec-resources-scripts`,
3939
:ref:`sec-resources-workflows`, the remainder of the current section

docs/source/workflows/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ into execution of functions in the **cijoe** Python module:
9999
100100
.. note::
101101
This is implemented in **cijoe** as "syntactic-sugar" for
102-
running the built-in script **core.cmdrunner**. Thus, have a look
103-
at :ref:`sec-resources-workflows-step-scripts` to see what this **unfolds**
104-
as.
102+
running the built-in script :ref:`core.cmdrunner <sec-packages-core-cmdrunner>`.
103+
Thus, have a look at :ref:`sec-resources-workflows-step-scripts` to see what
104+
this **unfolds** as.
105105

106106

107107
.. _sec-resources-workflows-step-scripts:
@@ -121,7 +121,7 @@ uses
121121
Name of the script to run, without the ``.py`` extension. Packaged scripts
122122
include a prefix, such as ``core.`` or ``linux.``. As in the
123123
example above where the script ``cmdrunner.py`` from the ``core`` package
124-
is used.
124+
is used (:ref:`core.cmdrunner <sec-packages-core-cmdrunner>`).
125125

126126
with
127127
Everything under this key is passed to the script's entry function:

0 commit comments

Comments
 (0)