Usage
Options
string
Access token for authenticated endpoints.
string
Auto-login email.
string
Auto-login password.
string
default:"GET"
HTTP method to use when testing.
boolean
Allow testing of write endpoints (POST, PUT, PATCH, DELETE).
boolean
Mock mode. Does not send real HTTP requests.
boolean
Test all endpoints regardless of status.
string[]
Skip specific endpoints by URL.
boolean
Run the tests through Newman. Bazable generates a temporary Postman collection and executes it.
string
default:"cli"
Comma-separated Newman reporters (for example
cli, junit, cli,junit). Only used with --newman.string[]
Environment variables passed to Newman as
key=value. May be repeated. Only used with --newman.Newman mode
With--newman, Bazable:
- Reads your contract.
- Generates a Postman collection (same logic as
bazable export --postman). - Runs
newman runon that collection. - Exits with code
0if all tests pass,1otherwise.
If you have stored credentials from
bazable login, the token is automatically injected as the token environment variable in the Newman run.