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 Sep 6, 2024
1 parent d83a790 commit 40895fc
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/tldr/pages/linux/tmt-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# tmt try

> Quickly experiment with tests and environments. See also: `tmt`, `tmt-run`.
> 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`

- List all available options:

`tmt try --help`
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. See also: `tmt-run`, `tmt-try`.
> More information: <https://tmt.readthedocs.io>.
- View documentation for `tmt run`:

`tldr tmt-run`

- View documentation for `tmt try`:

`tldr tmt-try`

- Make project tests manageable by `tmt`:

`tmt init`

- Create a new test with optional arguments like template and link:

`tmt create --template beakerlib --link verifies:issue#1234`

- List available tests, plans, or stories:

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

- Validate metadata:

`tmt lint`

- Docs, test & implementation coverage for selected stories:

`tmt story coverage [<pattern>]`

- Use filter:

`tmt tests ls --filter tag:foo --filter tier:0`

0 comments on commit 40895fc

Please sign in to comment.