.agent/.skills/test-strategy/SKILL.md — unit + (optional) integration tests
Unit tests (default)
- •Tag sanitization: edge cases, invalid-only tags, trimming.
- •Workspace resolution: dir/file cases, multiple config errors.
- •tmux format parsing: parsing of
\t-separated fields intoJobInfo. - •Model validation: mutually exclusive flags, log path rules.
Smoke test (required)
A single test that verifies the devenv assumptions:
- •
tmux -Vruns - •
tmuxp --versionruns
This test should not require a running tmux server.
Integration tests (opt-in)
If you add them, make them skip by default unless an env var is set, e.g. MUXDANTIC_INTEGRATION=1.
Suggested flow:
- •Create a temp tmux server via
-Lwith a random socket name. - •Use a tiny tmuxp workspace pointing to a session name.
- •
ensurethenruna command that exits 0 and one that exits non-zero. - •Verify window presence/absence using
ls-jobs.
Keep integration tests isolated from the user’s real tmux server by always using -L.