mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 12:02:10 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tmt run
|
||||
|
||||
> Execute tmt test steps. By default, all steps are run.
|
||||
> More information: <https://tmt.readthedocs.io/en/stable/overview.html#run>.
|
||||
> Execute `tmt` test steps. By default, all steps are run.
|
||||
> More information: <https://tmt.readthedocs.io/en/stable/stories/cli.html#run>.
|
||||
|
||||
- Run all test steps for each plan:
|
||||
|
||||
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run only the discover step to show what tests would be run:
|
||||
|
||||
`tmt run discover -v`
|
||||
`tmt run discover {{[-v|--verbose]}}`
|
||||
|
||||
- Run all steps and adjust the provision step options:
|
||||
|
||||
`tmt run --all provision --how {{container}} --image {{fedora:rawhide}}`
|
||||
`tmt run {{[-a|--all]}} provision {{[-h|--how]}} {{container}} {{[-i|--image]}} {{fedora:rawhide}}`
|
||||
|
||||
- Run only selected plans and tests:
|
||||
|
||||
`tmt run plan --name {{/plan/name}} test --name {{/test/name}}`
|
||||
`tmt run plan {{[-n|--name]}} {{/plan/name}} test {{[-n|--name]}} {{/test/name}}`
|
||||
|
||||
- Show results from the last run in a web browser:
|
||||
|
||||
`tmt run --last report --how {{html}} --open`
|
||||
`tmt run {{[-l|--last]}} report {{[-h|--how]}} {{html}} {{[-o|--open]}}`
|
||||
|
||||
- Run tests with the provided context:
|
||||
|
||||
`tmt run --context {{key=value}} -c {{distro=fedora}}`
|
||||
`tmt run {{[-c|--context]}} {{key=value}} {{[-c|--context]}} {{distro=fedora}}`
|
||||
|
||||
- Run tests interactively (debug test code in the middle of a test):
|
||||
|
||||
`tmt run --all execute --how {{tmt}} --interactive`
|
||||
`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 --dry -vvv`
|
||||
`tmt run {{[-n|--dry]}} {{[-vvv|--verbose --verbose --verbose]}}`
|
||||
|
||||
Reference in New Issue
Block a user