ruby/plans.fmf
Lukáš Zachar ec8759b052 Add a plan to run all the tests.
* Update the plan /plans/modified to run in CI. See the following link for the
  condition `trigger == commit`.
  https://tmt.readthedocs.io/en/stable/spec/context.html#trigger
* Add the plan /plans/all to run all the tests. The plan is not executed in CI
  as a default. Don't trigger this plan in CI to save the infra resource and
  the running time.
  Note we don't describe the triggered environment such as local or CI in the
  `summary` element in the plan /plans/all of the `plans.fmf`. Because this
  plan is executed as a default, and users can override the triggered
  environment by running the `tmt` with `trigger` option, such as
  `tmt -c trigger=commit`. We don't want to give users the impression that the
  plan only works in a specific running environment.
* Update the `README.md` removing the parts of the `plans --default` option in
  the `tmt run` commands that are not needed due to the plan /plans/all.

Co-authored-by: Lukáš Zachar <lzachar@redhat.com>
2024-10-08 14:48:43 +02:00

27 lines
530 B
Text

/:
inherit: false
execute:
how: tmt
/modified:
summary: Run only modified tests in CI.
enabled: false
adjust:
# https://tmt.readthedocs.io/en/stable/spec/context.html#trigger
- when: trigger == commit
enabled: true
discover:
how: fmf
modified-only: true
modified-ref: reference/main
modified-url: https://src.fedoraproject.org/tests/ruby
/all:
summary: Run all the tests.
adjust:
# Don't trigger this plan in CI.
- when: trigger == commit
enabled: false
discover:
how: fmf