Skip to content

[Feature]: JUnit (or JSON) log format #1891

Description

@NoTuxNoBux

Description

CSharpier can already be run in CI/CD using check as per the documentation, but some CI systems such as GitLab and Jenkins also support JUnit reports directly. It would be nice if there was a --log-format=JUnit or --log-format=JSON to get a structured version of the output rather than a purely textual log.

Supporting JUnit (XML) allows direct ingestion in CI report systems. Alternatively JSON or another structured format also works, but requires all consumers to write their own translation/mapper, which probably is somewhat suboptimal.

The main advantage of JUnit reports is that they can be visualised per-file inline in the CI system, including in merge/pull requests. The developer can then click them open instead of needing to dive into CI output directly (which I've noticed can be nontrivial for some developers that aren't familiar with how CI works and only use it to view results).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions