Back to Qwen Code

test-harness CLI smoke runners

packages/cua-driver/test-harness/smoke/README.md

0.19.31.2 KB
Original Source

test-harness CLI smoke runners

Per-OS broad PASS / FAIL / SKIP probes across the full cua-driver tool surface. Complements the Rust integration tests under ../../rust/crates/cua-driver/tests/:

  • Integration tests drive cua-driver through the MCP stdio loop and assert on specific UIA / AX state changes.
  • Smoke runners drive cua-driver through the CLI (cua-driver call <tool> <json>) — different code path (CLI argument parser + tool resolution), one broad sweep across every registered tool in ~30 sec.
FileHost OSWhat it runs
macos.shmacOSSpawns the AppKit harness, calls every tool once

Each script checks in a baseline result file under results/ for the current driver version — diff against it to catch regressions in tool coverage:

bash
./macos.sh > /tmp/run.txt
diff results/macos.txt /tmp/run.txt

Prereqs (macOS):

  • ../build/macos.sh must have produced ../../rust/test-apps/harness-appkit/
  • ../../rust/target/release/cua-driver built (debug works too)
  • TCC Accessibility granted to the cua-driver binary