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
Methods
CaseFinished(CaseOutcome, bool)
A test case ended with outcome.
public virtual void CaseFinished(CaseOutcome outcome, bool finalReplay)
Parameters
outcomeCaseOutcomefinalReplaybool
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
CaseStarted(bool)
A test case is starting; finalReplay when it is a failure's final report.
public virtual void CaseStarted(bool finalReplay)
Parameters
finalReplaybool
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
linestring
Failure(Failure)
One failure's report, after its test case's output.
public virtual void Failure(Failure failure)
Parameters
failureFailure
FailuresFound(int)
The run found count distinct failures, reported next.
public virtual void FailuresFound(int count)
Parameters
countint
Printing(TextWriter)
The standard report, written to output.
public static Reporter Printing(TextWriter output)
Parameters
outputTextWriter
Returns
RunFinished(RunReport)
The run ended with report.
public virtual void RunFinished(RunReport report)
Parameters
reportRunReport
RunStarted(Settings)
The run is starting with the effective settings.
public virtual void RunStarted(Settings settings)
Parameters
settingsSettings