class libtmux-dotnet latest
TmuxTestFactory
Makes the tmux objects a test needs, each owning its own cleanup.
Source and package
- Module
- LibTmux.Testing
- Package
- LibTmux
- Source
- src/LibTmux.Testing/TmuxTestFactory.cs
-
Description#
Every scope this hands out is disposable, and disposing unwinds as far as the scope owns: a session scope removes the session, a server scope kills the server. A test that takes a scope therefore cannot leak a tmux server, even when it fails part way through.
Discussed in Testing with libtmux
Members6 members#
Common operations1 member#
- CreateHierarchyAsync method Starts a server, session, window, and pane a test can type into.
Other members5 members#
- CreateContextAsync method Starts a server this test owns, with its environment.
- CreateServerAsync method Starts a server this test owns.
- CreateSessionAsync method Starts a server and a session in it, both owned by this test.
- CreateWindowAsync method Starts a server, a session, and a window, all owned by this test.
- TmuxTestFactory method Initializes a factory.