C# Class Machine.Specifications.Reporting.Integration.TeamCityServiceMessageWriter

Writes specially formatted service messages for TeamCity. These messages are interpreted by TeamCity to perform some task. See also: http://www.jetbrains.net/confluence/display/TCD3/Build+Script+Interaction+with+TeamCity
Show file Open project: Huddle/machine.specifications Class Usage Examples

Public Methods

Method Description
TeamCityServiceMessageWriter ( Action writer ) : System
WriteError ( string message, string details ) : void
WriteProgressFinish ( string message ) : void
WriteProgressMessage ( string message ) : void
WriteProgressStart ( string message ) : void
WriteTestFailed ( string name, string message, string details ) : void
WriteTestFailedWithComparisonFailure ( string name, string message, string details, string expected, string actual ) : void
WriteTestFinished ( string name, System.TimeSpan duration ) : void
WriteTestIgnored ( string name, string message ) : void
WriteTestStarted ( string name, bool captureStandardOutput ) : void
WriteTestStdErr ( string name, string text ) : void
WriteTestStdOut ( string name, string text ) : void
WriteTestSuiteFinished ( string name ) : void
WriteTestSuiteStarted ( string name ) : void

Private Methods

Method Description
AppendEscapedString ( StringBuilder builder, string rawString ) : void
WriteMessage ( Action formatter ) : void

Method Details

TeamCityServiceMessageWriter() public method

public TeamCityServiceMessageWriter ( Action writer ) : System
writer Action
return System

WriteError() public method

public WriteError ( string message, string details ) : void
message string
details string
return void

WriteProgressFinish() public method

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

WriteProgressMessage() public method

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

WriteProgressStart() public method

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

WriteTestFailed() public method

public WriteTestFailed ( string name, string message, string details ) : void
name string
message string
details string
return void

WriteTestFailedWithComparisonFailure() public method

public WriteTestFailedWithComparisonFailure ( string name, string message, string details, string expected, string actual ) : void
name string
message string
details string
expected string
actual string
return void

WriteTestFinished() public method

public WriteTestFinished ( string name, System.TimeSpan duration ) : void
name string
duration System.TimeSpan
return void

WriteTestIgnored() public method

public WriteTestIgnored ( string name, string message ) : void
name string
message string
return void

WriteTestStarted() public method

public WriteTestStarted ( string name, bool captureStandardOutput ) : void
name string
captureStandardOutput bool
return void

WriteTestStdErr() public method

public WriteTestStdErr ( string name, string text ) : void
name string
text string
return void

WriteTestStdOut() public method

public WriteTestStdOut ( string name, string text ) : void
name string
text string
return void

WriteTestSuiteFinished() public method

public WriteTestSuiteFinished ( string name ) : void
name string
return void

WriteTestSuiteStarted() public method

public WriteTestSuiteStarted ( string name ) : void
name string
return void