Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 9 additions & 9 deletions pages/linux/tmt-run.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# 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:

`tmt run`

- 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]}}`
8 changes: 4 additions & 4 deletions pages/linux/tmt-try.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- Run a test in the current working directory:

`cd {{path/to/test}} && tmt try`
`cd {{path/to/test_directory}} && tmt try`

- Use a specific operating system:

Expand All @@ -21,15 +21,15 @@

- Select tests with custom filter:

`tmt try --test {{feature}}`
`tmt try {{[-t|--test]}} {{feature}}`

- Provision guest and wait for instructions:

`tmt try --ask`
`tmt try {{[-a|--ask]}}`

- Directly log into the guest without asking:

`tmt try --login`
`tmt try {{[-l|--login]}}`

- Display help:

Expand Down
8 changes: 4 additions & 4 deletions pages/linux/tmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Test Management Tool for creating, running, and debugging tests.
> Some subcommands such as `run`, `try`, etc. have their own usage documentation.
> More information: <https://tmt.readthedocs.io>.
> More information: <https://tmt.readthedocs.io/en/stable/examples.html>.

- List available tests, plans, and stories:

Expand All @@ -14,23 +14,23 @@

- Create a new test with a template and a link:

`tmt test create --template {{beakerlib}} --link {{verifies:issue#1234}}`
`tmt test create {{[-t|--template]}} {{beakerlib}} --link {{verifies:issue#1234}}`

- List available tests, plans, or stories:

`tmt {{test|plan|story}} ls {{pattern}}`

- Show detailed test metadata in the given context:

`tmt --context {{arch=aarch64}} test show`
`tmt {{[-c|--context]}} {{arch=aarch64}} test show`

- Validate tmt files against the specification:

`tmt lint`

- Use filter:

`tmt tests ls --filter {{tag:foo}} --filter {{tier:0}}`
`tmt tests ls {{[-f|--filter]}} {{tag:foo}} {{[-f|--filter]}} {{tier:0}}`

- Display help:

Expand Down