Skip to content

Add Integration Test: Verify JSON Output Schema #288

@Timi16

Description

@Timi16

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 json against the counter fixture contract
  • Parse output and validate against schema using jsonschema or similar
  • Test covers: return value, budget info, storage diff, events
  • Must run in CI

Suggested Execution

  1. Branch: git checkout -b test/json-schema-validation
  2. Define JSON schema file in tests/schemas/
  3. Add integration test using assert_cmd to capture JSON output
  4. Validate output with schema
  5. Run in CI
  6. 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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions