commands.sh

tmt run

linux

Execute `tmt` test steps. By default, all steps are run.

More info →

Options (10)

-v, --verboseboolean

Run only the discover step to show what tests would be run

Example: tmt run discover {{[-v|--verbose]}}
-a, --allboolean

Run all steps and adjust the provision step options

Example: tmt run {{[-a|--all]}} provision {{[-h|--how]}} {{container}} {{[-i|--image]}} {{fedora:rawhide}}
-h, --howboolean

Run all steps and adjust the provision step options

Example: tmt run {{[-a|--all]}} provision {{[-h|--how]}} {{container}} {{[-i|--image]}} {{fedora:rawhide}}
-i, --imageboolean

Run all steps and adjust the provision step options

Example: tmt run {{[-a|--all]}} provision {{[-h|--how]}} {{container}} {{[-i|--image]}} {{fedora:rawhide}}
-n, --nameboolean

Run only selected plans and tests

Example: tmt run plan {{[-n|--name]}} {{/plan/name}} test {{[-n|--name]}} {{/test/name}}
-l, --lastboolean

Show results from the last run in a web browser

Example: tmt run {{[-l|--last]}} report {{[-h|--how]}} {{html}} {{[-o|--open]}}
-o, --openboolean

Show results from the last run in a web browser

Example: tmt run {{[-l|--last]}} report {{[-h|--how]}} {{html}} {{[-o|--open]}}
-c, --contextboolean

Run tests with the provided context

Example: tmt run {{[-c|--context]}} {{key=value}} {{[-c|--context]}} {{distro=fedora}}
-n, --dryboolean

Use dry mode to see what actions would happen and use the highest verbosity

Example: tmt run {{[-n|--dry]}} {{[-vvv|--verbose --verbose --verbose]}}
boolean

Use dry mode to see what actions would happen and use the highest verbosity

Example: tmt run {{[-n|--dry]}} {{[-vvv|--verbose --verbose --verbose]}}

Examples (8)

Run all test steps for each plan

Run only the discover step to show what tests would be run

tmt run discover [-v|--verbose]

Run all steps and adjust the provision step options

tmt run [-a|--all] provision [-h|--how] container [-i|--image] fedora:rawhide

Run only selected plans and tests

tmt run plan [-n|--name] /plan/name test [-n|--name] /test/name

Show results from the last run in a web browser

tmt run [-l|--last] report [-h|--how] html [-o|--open]

Run tests with the provided context

tmt run [-c|--context] key=value [-c|--context] distro=fedora

Run tests interactively (debug test code in the middle of a test)

tmt run [-a|--all] execute [-h|--how] tmt --interactive

Use dry mode to see what actions would happen and use the highest verbosity

tmt run [-n|--dry] [-vvv|--verbose --verbose --verbose]
made by @shridhargupta | data from tldr-pages