Expand description
SpecTest: parse and validate workload specification examples.
The workload_definition markdown files contain test triples:
*yaml:*— YAML source*json:*— JSON equivalent (validated against YAML parse)*ops:*— ParsedOp API view (validated against normalization)
This module parses those triples from markdown and validates them.
Structs§
- Spec
Test Case - A single spectest triple extracted from a markdown file.
Functions§
- extract_
spec_ tests - Extract all spectest triples from a markdown file.
- run_
spec_ tests - Run all spectest cases from a markdown file. Returns (passed, failed, errors).
- validate_
spec_ test - Validate a single spectest case.