Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,30 @@ the :ref:`/spec/plans/discover` step:
url: https://src.fedoraproject.org/rpms/tmt/


Share Tests Across Repositories
------------------------------------------------------------------

Another way to efficiently manage tests is by sharing them across repositories.
This can be achieved by referencing the repository containing shared tests
within the ``discover`` step of a plan. TMT will then fetch the tests from the
specified URL and make them available for execution alongside project-specific
tests. This promotes reusability and reduces duplication of common test cases.

.. code-block:: yaml

discover:
- name: shared-tests
how: fmf
url: https://example.com/path/to/shared-tests.git
# Optionally, specify a branch or tag
# ref: main
- name: project-specific-tests
how: fmf
# Assuming tests are in the current repository
# url: .
# filter: ...


Extend Steps
------------------------------------------------------------------

Expand Down