Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Testing & Edge-Case Recipes

Recipes designed to exercise specific recipe runner features and edge cases. Useful as regression tests and as references for condition syntax.

Source: recipes/testing/

Recipes

RecipeWhat It Tests
all-condition-operatorsEvery comparison and boolean operator: ==, !=, <, <=, >, >=, and, or, not, in, not in
all-functionsAll whitelisted functions: int(), str(), len(), bool(), float(), min(), max()
all-methodsAll whitelisted string methods: strip(), lstrip(), rstrip(), lower(), upper(), title(), startswith(), endswith(), replace(), split(), join(), count(), find()
output-chainingStep output stored in context and referenced by subsequent steps via {{variable}}
json-extraction-strategiesAll 3 JSON extraction strategies: direct parse, markdown fence, balanced braces
step-type-inferenceAutomatic step type detection: bash (command), agent (agent field), recipe (recipe field), agent (prompt-only)
continue-on-error-chaincontinue_on_error: true allowing subsequent steps to run after failures
nested-contextDot-notation access to nested context values: {{config.database.host}}
large-contextMany context variables and long values to test template rendering at scale
empty-and-edge-casesEmpty strings, missing variables, whitespace-only values, special characters