Skip to content

Reporting: Comparison reporters #28

Closed

Description

@AamiriYouness

Reporting: Comparison reporters

What

Add console, JSON, and Markdown reporters for ComparisonResult. No pass/fail/warning/regression/stability verdict may ever appear in this output — that vocabulary belongs to SuiteDecision's reporters, not these.

Add

  • ConsoleComparisonReporter
  • JsonComparisonReporter
  • MarkdownComparisonReporter
  • No JUnit — a policy-free comparison has no test verdict; JUnit's <failure> element would misrepresent "slower" as "failed"

Scope

  • Console: benchmark counts (comparable/added/removed), per-benchmark metric deltas with direction, added/removed benchmark names listed separately
  • JSON: own schemaVersion = 1, independently versioned from JsonDecisionReporter, JsonValidationReporter, and the baseline/policy document schemas — never share a version counter with an unrelated document type
  • JSON preserves full numeric precision (no rounding); display rounding is a console/Markdown-only concern
  • Markdown: describes change (useful for PR comments/build summaries), does not imitate a check report with the verdict column removed
  • All three formats render Added/Removed benchmarks and every non-Comparable MetricComparisonStatus distinctly, not silently dropped

Acceptance criteria

  • No Passed/Warning/Regressed/Unstable string or status concept appears anywhere in any of the three reporters — enforced by a test grep/assertion, not just review
  • Golden-file or snapshot tests for console and Markdown output shape
  • JSON schema test confirms full precision is preserved (no rounding in the serialized document)

Out of scope for this issue

The CLI command that invokes these (#29).

Depends on: #30.

Activity

  1. added
    type:feature
    size:m
    area:reporting
    on Aug 3, 2026
  2. self-assigned this
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:reportingsize:mtype:feature

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions