Bruno CLI Runner for CI/CD
Beginnerv1.0.0
Run Bruno collections in CI/CD pipelines with the CLI runner — environment selection, JUnit output, exit codes for build gating, and GitHub Actions integration.
Content
Overview
Bruno CLI runs collections from the command line, enabling automated API testing in CI/CD pipelines. Configure environments, capture JUnit results, and use exit codes to gate deployments on API test success.
How It Works
Basic CLI Usage
CI Output Formats
GitHub Actions Workflow
Environment Variables in CI
Best Practices
- -Use a dedicated CI environment with appropriate base URLs
- -Pass secrets via --env-var, not committed environment files
- -Output JUnit XML for CI dashboard integration
- -Start the API server in the same workflow (Docker Compose)
- -Run the full collection, not just individual requests
- -Upload results as artifacts for debugging failures
Common Mistakes
- -Committing environment files with real credentials
- -Not starting the API server before running tests
- -Not waiting for the API to be healthy before testing
- -Missing --output flag (no machine-readable results for CI)
FAQ
Discussion
Loading comments...