Common Recipes
Copy-paste patterns for common workflows.
CI with machine-readable output
glubean run tests/ \
--result-json results.json \
--reporter junit:test-results.xmlProduces both a glubean result file and a JUnit XML for CI dashboards.
CI shorthand
glubean run tests/ --ci--ci enables --fail-fast and --reporter junit in one flag.
Switch environments without changing code
glubean run # default (.env)
glubean run --env-file .env.staging
glubean run --env-file .env.prodThe CLI auto-pairs each env file with its .secrets counterpart. See Environments & Secrets.
Map shell variables to test names
export GLUBEAN_URL=https://api.example.com
export GLUBEAN_API_KEY=sk_live_xxx
printf "BASE_URL=\${GLUBEAN_URL}\n" > .env
printf "API_KEY=\${GLUBEAN_API_KEY}\n" > .env.secrets
glubean runRun by tags
glubean run --tag smoke
glubean run --tag smoke --tag auth --tag-mode andRun and upload to Cloud
glubean run tests/ --upload --project <id>Or upload a previous result file:
glubean sync -p <project-id>Preview redaction before upload
glubean redact .glubean/last-run.result.jsonSee Redaction & Privacy for details.
Last updated on