How to Use Fixtures

Background

Fixtureschevron-right

Supported Options

chevron-right--response-fixtures-pathhashtag

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

chevron-right--public-directory-pathhashtag

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:

chevron-rightX-Stoobly-Response-Fixtures-Pathhashtag

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

chevron-rightX-Stoobly-Public-Directory-Pathhashtag

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