Test selection
Yellow Jacket can execute a subset of configured routes and scenarios.
Select a route
Routes can be selected by their configured name:
yellow-jacket run --route healthor by their path:
yellow-jacket run --route /healthThe option can be repeated:
yellow-jacket run \
--route health \
--route usersSelect a scenario
Select a complete scenario by name:
yellow-jacket run --scenario checkoutA selected scenario always runs from its first step.
Yellow Jacket does not select individual scenario steps because later steps can depend on variables captured by earlier steps.
Tags
Routes and scenarios can declare tags:
export default defineConfig({
baseUrl: 'http://localhost:3000',
routes: [
{
name: 'health',
path: '/health',
tags: ['smoke']
}
],
scenarios: [
{
name: 'checkout',
tags: ['smoke', 'commerce'],
steps: [
{
name: 'create cart',
method: 'POST',
path: '/cart'
}
]
}
]
});Run all matching targets:
yellow-jacket run --tag smokeCombining selectors
Different selectors form a union.
For example:
yellow-jacket run \
--route health \
--scenario checkout \
--tag criticalruns every target matching any of those selectors.
If nothing matches, Yellow Jacket exits with code 2.
Baselines
Selectors are supported directly by run.
For baseline management, selectors are supported only together with --update. A command such as:
yellow-jacket baseline --tag smokeis rejected because replacing the complete baseline with a partial snapshot would discard unselected responses.
During a filtered run, Yellow Jacket filters the existing baseline to the selected routes and scenarios before comparison. Unselected baseline entries are therefore not reported as missing.
Updating selected baseline entries
A normal baseline command always replaces the complete baseline:
yellow-jacket baselineYellow Jacket therefore rejects selectors on a normal baseline command.
To intentionally refresh only part of an existing baseline, use --update:
yellow-jacket baseline \
--update \
--route healthThe same mode works with scenarios and tags:
yellow-jacket baseline \
--update \
--scenario checkout
yellow-jacket baseline \
--update \
--tag smokePartial updates preserve every unselected snapshot.
Selected snapshots are replaced by their new response, while newly selected routes that were not already present are appended to the baseline.
--update requires an existing baseline. If no baseline exists yet, create the complete one first:
yellow-jacket baselineRoute expectations must still pass before any baseline file is modified.
