--output flag (or -o).
console (default)
Human-readable colored terminal output with pass/fail indicators, response times, and a summary.Authorization, Proxy-Authorization, Cookie, Set-Cookie and any header whose name contains api-key, token, secret or password print as [REDACTED]. So do the password in a URL’s user:password@ and the value of query parameters named like api_key or access_token, in the request line and in error messages. The JSON and HTML reports redact header values but record the URL exactly as sent.
Warnings print in yellow under the request they belong to: a capture that matched nothing, or a
{{reference}} that was still unresolved when the request was sent. A warning never changes pass/fail or the exit code.
Options:
--no-color— disable colored output--quiet— suppress all output except errors
json
Machine-readable JSON output containing test results, durations, and assertion details. Useful for integration with other tools.request (method, url, headers) and response (statusCode, status, headers, duration) when a request was sent; header credentials are redacted. For a failed or errored request, response.bodyExcerpt holds the pretty-printed body (capped at about 2 KB or 30 lines, with response.bodyTruncated: true when it was cut). A test with warnings has a warnings array of strings.
junit
JUnit XML format compatible with CI/CD systems like GitHub Actions, GitLab CI, Jenkins, and CircleCI.<failure> or <error> body carries the failed assertions followed by the request line, the response status line and a capped body excerpt, so the CI report is enough to see why a request failed. Warnings (a capture that matched nothing, an unresolved {{reference}}) are written to the test case’s <system-out>.
GitHub Actions Example
checks: write when publishing check runs.
tap
Test Anything Protocol output, compatible with TAP consumers and harnesses.bodyTruncated says how much was cut). Warnings are listed under warnings:.
html
Self-contained HTML report with styling, suitable for sharing or archiving.- Summary dashboard with pass/fail counts
- Individual test results with durations
- Assertion details for failed tests
- Request and response details, with credentials in headers redacted
- Warnings for each test
- Dark theme styling
Writing to Files
By default, all formats write to stdout. Use--output-file to write to a file instead: