Skip to content

Commit

Permalink
Add tldr tmt pages
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoyer committed Aug 28, 2024
1 parent 3c4b0ea commit decb889
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/tldr/pages/linux/tmt-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# tmt try

> Quickly experiment with tests and environments.
> More information: <https://tmt.readthedocs.io/en/stable/stories/cli.html#try>.
- Run a test stored in current working directory:

`cd tests/core/smoke && tmt try`

- Use a specific operating system:

`tmt try fedora-41`

- Try a test in a container:

`tmt try fedora@container`

- Use custom filter to select tests instead of using cwd:

`tmt try --test feature`

- Do nothing, just provision the guest and ask what to do:

`tmt try --ask`

- Explicitly ask for login only if there are tests around:

`tmt try --login`
36 changes: 36 additions & 0 deletions docs/tldr/pages/linux/tmt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# tmt

> Test Management Tool for creating, running and debugging tests.
> More information: <https://tmt.readthedocs.io>.
- List available tests, plans, or stories:

`tmt {test|plan|story} ls [<pattern>]`

- Run all test steps for each plan:

`tmt run`

- Run selected plans and tests:

`tmt run plan -n <plan_name> test -n <test_name>`

- Show what tests a specific plan would run:

`tmt run -vv discover plan -n <plan_name>`

- Show test results from the last run in a web browser:

`tmt run -l report --how html --open`

- Add context to a test run:

`tmt -c foo=bar -c baz=qux,quux run [...]`

- Validate metadata:

`tmt lint`

- View documentation for tmt-try:

`tldr tmt-try`

0 comments on commit decb889

Please sign in to comment.