C# Class NBench.Reporting.TeamCityBenchmarkOutput

TeamCity output formatter. Complies with https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingTests to ensure that output reports from NBench render nicely on TeamCity.
Can be enabled in the default NBench test runner by passing in the teamcity=true flag.
Inheritance: IBenchmarkOutput
Datei anzeigen Open project: petabridge/NBench

Public Methods

Method Description
Error ( Exception ex, string message ) : void
Error ( string message ) : void
FinishBenchmark ( string benchmarkName ) : void
SkipBenchmark ( string benchmarkName ) : void
StartBenchmark ( string benchmarkName ) : void
TeamCityBenchmarkOutput ( ) : System

Default constructor. Uses Console.Out as the output target.

TeamCityBenchmarkOutput ( TextWriter writer ) : System

Constructor that takes a TextWriter to use as the output target.

Warning ( string message ) : void
WriteBenchmark ( BenchmarkFinalResults results ) : void
WriteLine ( string message ) : void
WriteRun ( BenchmarkRunReport report, bool isWarmup = false ) : void

Private Methods

Method Description
BenchmarkStdErr ( NBench.Reporting.BenchmarkFinalResults results, string str ) : void
BenchmarkStdOut ( NBench.Reporting.BenchmarkFinalResults results, string str ) : void
Escape ( string input ) : string

Method Details

Error() public method

public Error ( Exception ex, string message ) : void
ex System.Exception
message string
return void

Error() public method

public Error ( string message ) : void
message string
return void

FinishBenchmark() public method

public FinishBenchmark ( string benchmarkName ) : void
benchmarkName string
return void

SkipBenchmark() public method

public SkipBenchmark ( string benchmarkName ) : void
benchmarkName string
return void

StartBenchmark() public method

public StartBenchmark ( string benchmarkName ) : void
benchmarkName string
return void

TeamCityBenchmarkOutput() public method

Default constructor. Uses Console.Out as the output target.
public TeamCityBenchmarkOutput ( ) : System
return System

TeamCityBenchmarkOutput() public method

Constructor that takes a TextWriter to use as the output target.
public TeamCityBenchmarkOutput ( TextWriter writer ) : System
writer TextWriter Output target.
return System

Warning() public method

public Warning ( string message ) : void
message string
return void

WriteBenchmark() public method

public WriteBenchmark ( BenchmarkFinalResults results ) : void
results BenchmarkFinalResults
return void

WriteLine() public method

public WriteLine ( string message ) : void
message string
return void

WriteRun() public method

public WriteRun ( BenchmarkRunReport report, bool isWarmup = false ) : void
report BenchmarkRunReport
isWarmup bool
return void