mix live_interaction_contracts.check (live_interaction_contracts v1.3.0)

Copy Markdown View Source

Runs one declarative interaction contract, or a deterministic directory suite of independent contracts, against an already-started LiveView app. The runner performs real interactions, requires a subject-local patch acknowledgment, compares DOM object identity and native browser state, and writes JSON evidence.

mix live_interaction_contracts.check       --url http://127.0.0.1:4000       --contract test/interaction_contracts/account_menu.json

mix live_interaction_contracts.check       --url http://127.0.0.1:4000       --contracts test/interaction_contracts       --out-dir tmp/interaction-contract-results

Options:

  • --url — required base URL; loopback only unless --allow-remote
  • --contract — one v1 JSON contract path
  • --contracts — directory of independent first-level *.json contracts
  • --browser — chromium (default), firefox, or webkit
  • --out — single-contract JSON evidence path (default: live-interaction-contracts-result.json)
  • --out-dir — required suite evidence directory
  • --allow-remote — permit an explicitly safe non-loopback test target
  • --validate-only — validate contract/target without launching a browser

Exit status is non-zero for fail, inconclusive, and infrastructure/contract error.