Class 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.
Inheritance
System.Object
TeamCityBenchmarkOutput
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NBench.Reporting
Assembly: NBench.dll
Syntax
public sealed class TeamCityBenchmarkOutput : IBenchmarkOutput
Remarks
Can be enabled in the default NBench test runner by passing in the
teamcity=true
flag.
Constructors
TeamCityBenchmarkOutput()
Default constructor. Uses System.Console.Out as the output target.
Declaration
public TeamCityBenchmarkOutput()
TeamCityBenchmarkOutput(TextWriter)
Constructor that takes a System.IO.TextWriter to use as the output target.
Declaration
public TeamCityBenchmarkOutput(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | writer | Output target. |
Methods
Error(Exception, String)
Declaration
public void Error(Exception ex, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex | |
System.String | message |
Error(String)
Declaration
public void Error(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
FinishBenchmark(String)
Declaration
public void FinishBenchmark(string benchmarkName)
Parameters
Type | Name | Description |
---|---|---|
System.String | benchmarkName |
SkipBenchmark(String)
Declaration
public void SkipBenchmark(string benchmarkName)
Parameters
Type | Name | Description |
---|---|---|
System.String | benchmarkName |
StartBenchmark(String)
Declaration
public void StartBenchmark(string benchmarkName)
Parameters
Type | Name | Description |
---|---|---|
System.String | benchmarkName |
Warning(String)
Declaration
public void Warning(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
WriteBenchmark(BenchmarkFinalResults)
Declaration
public void WriteBenchmark(BenchmarkFinalResults results)
Parameters
Type | Name | Description |
---|---|---|
BenchmarkFinalResults | results |
WriteLine(String)
Declaration
public void WriteLine(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
WriteRun(BenchmarkRunReport, Boolean)
Declaration
public void WriteRun(BenchmarkRunReport report, bool isWarmup = false)
Parameters
Type | Name | Description |
---|---|---|
BenchmarkRunReport | report | |
System.Boolean | isWarmup |