Fuzzing And Validation
Vela uses layered validation. Parser tests, compiler tests, VM tests, examples, benchmarks, fuzz targets, and CI checks cover different failure modes.
Standard Validation
Section titled “Standard Validation”The default full validation target is:
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspaceFor site syntax highlighting, the documentation site also provides:
cd site && npm run test:syntaxFuzzing
Section titled “Fuzzing”The repository includes a parser fuzz target under fuzz/. The local command
when cargo-fuzz is installed is:
cargo fuzz run parserFuzzing should find parser crashes, recovery bugs, and unexpected panics. It does not replace semantic or VM conformance tests.
Example Coverage
Section titled “Example Coverage”Runnable examples under examples/src/bin exercise hot reload, reflection,
host permissions, stale host refs, schema rejection, I/O capabilities, and
domain-neutral standard helpers.
Validation Discipline
Section titled “Validation Discipline”Do not delete tests to make a failure pass. New runtime behavior should have a focused test at the layer that owns the contract, then broader examples or conformance fixtures when the behavior crosses subsystem boundaries.