# test.TestServerBuilder.tmux_executable

- **Module:** test.TestServerBuilder
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/test.rs#L412
- **Page:** https://libtmux.org/en/rs/latest/reference/test-testserverbuilder-tmux_executable/

```
test.TestServerBuilder.tmux_executable(mut, executable: impl Into<OsString>) -> Self
```

Configure the tmux executable used by the daemon and every client.

Defaults to `LIBTMUX_TEST_TMUX`, and to `tmux` resolved through `PATH`
when that is unset -- so pinning a release across a whole run is the
variable's job, and this is for a test that needs a particular build
whatever the run was pointed at.

## Example

```rust
use libtmux::test::TestServer;

let _builder = TestServer::builder().tmux_executable("tmux");
```
