(testing)=

# Testing Utilities

Tools for testing code that uses libtmux.

::::{grid} 1 1 2 2
:gutter: 2 2 3 3

:::{grid-item-card} pytest Plugin
:link: pytest-plugin/index
:link-type: doc
[pytest] fixtures for isolated tmux servers, sessions, windows, and panes in
automated tests.
:::

:::{grid-item-card} Test Helpers
:link: test-helpers/index
:link-type: doc
Utilities for test setup: constants, environment mocking, retry logic, temporary resources.
:::

::::

```{toctree}
:hidden:
:maxdepth: 2

pytest-plugin/index
test-helpers/index
```

[pytest]: https://docs.pytest.org/en/stable/
