How to Use Fixtures

Background

Fixtures

Supported Options

--response-fixtures-path

Path to a YAML file that contains fixture specifications. Path is relative to where the command is run.

--public-directory-path

Path to a folder that contains files or folders that contains files that match a request's path. Path is relative to where the command is run.

Commands

The following commands can be configured to use either a response fixtures file and/or a public directory:

stoobly-agent run
stoobly-agent mock
stoobly-agent request test
stoobly-agent scenario test

Supported Headers

When mocking a request, the following headers can be set:

X-Stoobly-Response-Fixtures-Path

Path to a YAML file that contains fixture specifications. Path is relative to where the stoobly-agent run command was run.

X-Stoobly-Public-Directory-Path

Path to a folder that contains files or folders that contains files that match a request's path. Path is relative to where the stoobly-agent run command was run.

Last updated

Was this helpful?