Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to run cross-browser and real-device tests, debug sessions, and wire up CI on the TestMu AI cloud:
Common Patterns
These patterns apply to every CI system; the platform-specific recipes below differ only in how they wire up the secrets.- Always pass
--headless. CI runners have no display. - Always set
--timeout <seconds>. A hung run cannot be allowed to block the pipeline. - Authenticate with
--usernameand--access-keyfrom CI secrets. Do not callkane-cli loginin CI — that flow opens a browser for OAuth and will not work on a runner. - Load test data with
--variables-file <path>. Check the file into your repo (without secret values), or generate it before the step. - Check the exit code.
0passed,1failed,2error,3timeout or cancellation.
Authentication in CI/CD
Pass credentials directly on the run command using environment variables from your secrets store:Exit Codes
CI/CD Checklist
- Always use
--headlessand--agent: no display server in CI - Set
--timeout: prevents pipeline hangs (e.g.--timeout 300) - Set
--max-steps: caps run length (e.g.--max-steps 50) - Use
--variables-file: load test data from a committed config file - Store credentials as secrets: never hardcode in pipeline files
Platform Guides
- GitHub Actions
- GitLab CI
- Jenkins
- Bitbucket Pipelines
- Docker / Generic
Store
LT_USERNAME and LT_ACCESS_KEY as repository secrets under Settings > Secrets and variables > Actions.