Skip to content

Add libtest JSON emitter #315

Closed
Closed
@kirtchev-adacore

Description

@kirtchev-adacore

As discussed in the #t-infra/bootstrap > x test src/tools/clippy and JSON output Zulip thread, oli suggested:

Adding json support for ui_test shouldn't be too hard (famous last words). I wrote the entire system emitter-agnostic. So you "just" need to implement the various emitter traits for a new json emitter struct. If you want to upstream it to ui_ test I'll happily maintain it, so there's only a one time cost for you (implementing, adding tests and likely addressing a round or two of review feedback)

For the record, I looked into creating a ui_test-to-libtest adapter, where implementations of the various emitter traits would convert the ui_test types to libtest types and just use the libtest JSON emission circuitry, however libtest does not expose most of the relevant traits and types in its public API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions