ptyunit
PTY test framework for bash
brew install fissible/tap/ptyunit Features
- 221 assertions for terminal and PTY output testing
- 15× faster than bats-core for PTY-dependent test suites
- Used by shellframe, shellql, and seed
- Bash 3.2–5.x compatible
Example
source ptyunit.sh
pty_test "shows welcome screen" <<'EOF'
pty_run "shql"
pty_assert_contains "Welcome to shellql"
EOF