Skip to navigation

routing

A single routing entry on a test handler (onPass, onFail, onWarning, onSkip): an optional condition (if) plus exactly one of continue, stop (test or spec), or goToTest. Step handlers take a step routing entry instead.

Referenced In

Fields

FieldTypeDescriptionDefault
ifone of:
- string
- array of string
Optional. A condition expression, or an array of expressions combined with logical AND.—
continuetrueOptional. Continue with the next test. Use to explicitly suppress a default handler behavior.—
stopstringOptional. Stop at the given scope. test does nothing, because the test already finished. spec skips the spec’s remaining tests.

Accepted values: test, spec
—
goToTeststringOptional. Identifier of the test to jump to, within the same spec.

Minimum length: 1. Pattern: \S
—

Examples

{
"continue": true
}
{
"stop": "test"
}
{
"stop": "spec"
}
{
"if": "$$platform == windows",
"goToTest": "cleanup"
}