Skip to main content

stave forge test

Run fixture-based assertions against a control

Usage

stave forge test [flags]

Description

Evaluate a control predicate against pass and fail fixture files and assert the expected verdict. Shows predicate trace on failure.

Exit Codes: 0 All assertions passed 1 One or more assertions failed 2 Invalid input 4 Internal error

Flags

FlagTypeDescription
--controlstringpath to control YAML file (required)
--failstringfixture that must produce verdict: fail
--passstringfixture that must produce verdict: pass
--snapshotstringreal snapshot for smoke test
--verboseboolshow trace on pass
--watchboolre-run on control file change

Examples

stave forge test \
--control controls/ad/CTL.AD.PASS.MINLEN.001.yaml \
--pass testdata/fixture-pass.json \
--fail testdata/fixture-fail.json