Mutare.Report.HarnessDiagnostic (mutare v0.1.0)

Copy Markdown View Source

Compact diagnostics for mutants that ended as :harness_error.

The runner already captures the raw mix test output, but the final reports need a short, stable summary rather than an entire suite log. This module is the shared presentation layer for human, JSON, live, and abort messages.

Summary

Functions

Return a site-prefixed diagnostic line suitable for multi-error summaries.

Return a one-line diagnostic for a harness-errored result.

Functions

line(result)

@spec line(Mutare.Result.t()) :: String.t()

Return a site-prefixed diagnostic line suitable for multi-error summaries.

summary(result)

@spec summary(Mutare.Result.t()) :: String.t()

Return a one-line diagnostic for a harness-errored result.

Includes the exit status when known plus the first useful output line. The known self-erasing boot crash gets a cause-specific summary because its output is explicitly not useful for recovering the original exception.