Skip to main content

hitspec run

Run HTTP API tests defined in .http or .hitspec files.

Arguments

You can pass multiple files and directories as arguments.

Flags

Core Flags

Output Flags

Execution Flags

Network Flags

History Flags

Every run is recorded to a local history database (also browsable in studio’s History screen).

Snapshot Flags

Security Flags

Coverage Flags

Shell and database blocks are disabled by default for security. You must explicitly opt in with --allow-shell or --allow-db when your test files use these features.

Stress Testing Flags

Metrics Flags

Notification Flags

Examples

Basic Usage

Filtering

Parallel Execution

Requests with dependencies (@depends) always run sequentially. Only independent requests run in parallel. Captured variables are not shared between parallel requests.

Watch Mode

Output Formats

Stress Testing

CI/CD Integration

Snapshot Testing

Security Flags

Exit Codes

Environment Variables

All flags that support environment variables are listed in the flag tables above. Environment variables are read at startup and can be overridden by explicit flags. Common variables:
Last modified on June 16, 2026