hitspec init
Initialize a new hitspec project in the current directory.What It Creates
| File | Description |
|---|---|
hitspec.yaml | Configuration file with default environments (dev, staging, prod) |
example.http | Example test file with CRUD operations and captures |
Flags
| Flag | Short | Description | Default |
|---|---|---|---|
--force | -f | Overwrite existing files | false |
Examples
Generated Config
The generatedhitspec.yaml includes:
Generated Example
The generatedexample.http demonstrates:
- Variable definitions with
@baseUrl - Request metadata (
@name,@description,@tags) - Assertion blocks with
>>>/<<< - Capture blocks with
>>>capture/<<< - Dependencies with
@depends