LinuxCommandLibrary

tmt-run

Execute tmt test steps

TLDR

Run all test steps

$ tmt run
copy
Discover what tests would run
$ tmt run discover -v
copy
Run with provisioning options
$ tmt run -a provision -h [container] -i [fedora:rawhide]
copy
Run selected plans and tests
$ tmt run plan -n [/plan/name] test -n [/test/name]
copy
Show results in browser
$ tmt run -l report -h html -o
copy
Run with context
$ tmt run -c [key=value]
copy
Run interactively
$ tmt run -a execute -h tmt --interactive
copy
Dry run with verbose
$ tmt run -n -vvv
copy

SYNOPSIS

tmt run [OPTIONS] [STEP...]

DESCRIPTION

tmt run executes test management tool steps for test execution. By default, all steps (discover, provision, prepare, execute, report, finish) are executed in sequence. Individual steps can be run separately or with modified options.
The command supports different provisioning methods including containers, virtual machines, and remote systems. Tests can be filtered by name, context, or plan.

PARAMETERS

-a, --all

Run all test steps
-l, --last
Use the last run
-n, --dry
Dry run mode (show actions without executing)
-v, --verbose
Increase verbosity (can be repeated)
-c, --context KEY=VALUE
Set context variables
discover
Show what tests would be run
provision
Prepare the test environment
prepare
Prepare the system for testing
execute
Run the tests
report
Generate test reports
finish
Clean up after testing

CAVEATS

Running all steps requires appropriate provisioning backend. Container-based execution needs Podman or Docker. Some steps require root privileges. Large test suites may require significant resources.

SEE ALSO

tmt(1), tmt-try(1), podman(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community