-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
Description
Add an integration test that runs the debugger with --output json and validates the output against a defined JSON schema, ensuring the JSON format never silently breaks between releases.
Requirements
- Define a JSON schema for execution output in
tests/schemas/execution_output.json - Run CLI with
--output jsonagainst the counter fixture contract - Parse output and validate against schema using
jsonschemaor similar - Test covers: return value, budget info, storage diff, events
- Must run in CI
Suggested Execution
- Branch:
git checkout -b test/json-schema-validation - Define JSON schema file in
tests/schemas/ - Add integration test using
assert_cmdto capture JSON output - Validate output with schema
- Run in CI
- Commit:
test: add JSON output schema validation integration test
Acceptance Criteria
- JSON schema defined and committed
- Integration test runs and passes
- All required fields validated
- Test fails if output breaks schema
- Runs in CI on every PR
Reactions are currently unavailable