Skip to main content

Crate wasmsh_testkit

Crate wasmsh_testkit 

Source
Expand description

Test utilities, TOML test runner, and compatibility harness for wasmsh.

This crate provides:

  • runner: TOML-based declarative test runner
  • toml_case: Test case schema (serde-deserializable)
  • features: Feature gate registry
  • oracle: Reference shell comparison (opt-in)
  • compat: Legacy compatibility case format

Modules§

compat
Differential compatibility test harness.
features
Feature gate registry for the TOML test runner.
oracle
Oracle comparison: run shell scripts against local reference shells.
runner
TOML test runner engine.
toml_case
TOML test case schema for declarative shell tests.

Functions§

assert_parse_error
Parse source and assert it produces a parse error.
assert_parses
Parse source and assert it produces a valid AST (no parse errors).
parse_and_lower
Parse source, lower to HIR, and return the HIR program.