diff options
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r-- | documentation/ref-manual/classes.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 6797927fe8..8b930fe3d2 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -2707,6 +2707,21 @@ For information on setting up and running ptests, see the | |||
2707 | ":ref:`test-manual/ptest:testing packages with ptest`" | 2707 | ":ref:`test-manual/ptest:testing packages with ptest`" |
2708 | section in the Yocto Project Development Tasks Manual. | 2708 | section in the Yocto Project Development Tasks Manual. |
2709 | 2709 | ||
2710 | .. _ref-classes-ptest-python-pytest: | ||
2711 | |||
2712 | ``ptest-python-pytest`` | ||
2713 | ======================= | ||
2714 | |||
2715 | The :ref:`ref-classes-ptest-python-pytest` class can be used in Python-based | ||
2716 | recipes to automatically configure the :ref:`ref-classes-ptest` class for Python | ||
2717 | packages leveraging the `pytest <https://docs.pytest.org>`__ unit test framework. | ||
2718 | |||
2719 | Within the recipe, the :term:`PTEST_PYTEST_DIR` variable can be overridden to | ||
2720 | specify the path to the directory containing the tests (default value: | ||
2721 | ``tests``). Test contained in this directory are installed in :term:`D` by the | ||
2722 | :ref:`ref-tasks-install_ptest_base` task, as well as a specific ``run-ptest`` | ||
2723 | script for this task. | ||
2724 | |||
2710 | .. _ref-classes-python3-dir: | 2725 | .. _ref-classes-python3-dir: |
2711 | 2726 | ||
2712 | ``python3-dir`` | 2727 | ``python3-dir`` |