Table of Contents

Class Reporter

Namespace
Hegel
Assembly
Hegel.dll

Receives what a run reports as it happens. Override what you want to hear about; the default implementations do nothing. Printing(TextWriter) writes the standard report to a writer and Silent discards it.

public abstract class Reporter
Inheritance
Reporter
Inherited Members

Properties

Silent

A reporter that discards everything. The engine is told the run has no output destination, so it prints nothing and spends nothing on verbose or debug output.

public static Reporter Silent { get; }

Property Value

Reporter

Methods

CaseFinished(CaseOutcome, bool)

A test case ended with outcome.

public virtual void CaseFinished(CaseOutcome outcome, bool finalReplay)

Parameters

outcome CaseOutcome
finalReplay bool

CaseOutput(string, bool)

A test case printed line (a draw or a note): a line of a failure's report, or in a verbose run a line of an explicit example.

public virtual void CaseOutput(string line, bool finalReplay)

Parameters

line string
finalReplay bool

CaseStarted(bool)

A test case is starting; finalReplay when it is a failure's final report.

public virtual void CaseStarted(bool finalReplay)

Parameters

finalReplay bool

EngineOutput(string)

The engine printed line: a warning, statistics, a replay note, or in a verbose run what each test case prints, as it prints it.

public virtual void EngineOutput(string line)

Parameters

line string

Failure(Failure)

One failure's report, after its test case's output.

public virtual void Failure(Failure failure)

Parameters

failure Failure

FailuresFound(int)

The run found count distinct failures, reported next.

public virtual void FailuresFound(int count)

Parameters

count int

Printing(TextWriter)

The standard report, written to output.

public static Reporter Printing(TextWriter output)

Parameters

output TextWriter

Returns

Reporter

RunFinished(RunReport)

The run ended with report.

public virtual void RunFinished(RunReport report)

Parameters

report RunReport

RunStarted(Settings)

The run is starting with the effective settings.

public virtual void RunStarted(Settings settings)

Parameters

settings Settings