Skip to main content

stave forge scaffold

Generate test fixtures from a real snapshot

Usage

stave forge scaffold [flags]

Description

Generate minimal pass and fail fixture files for use with stave forge test. Extracts only properties referenced by the control's predicate.

Exit Codes: 0 Fixtures generated 2 Invalid input 4 Internal error

Flags

FlagTypeDescription
--controlstringpath to control YAML file (required)
--out-dirstringoutput directory (default: testdata/<control_id>/)
--snapshotstringpath to snapshot file (required)

Examples

stave forge scaffold \
--control controls/ad/CTL.AD.PASS.MINLEN.001.yaml \
--snapshot snapshots/acme-dc.json